commit | 491004bbfb67e58040febda9a396455a9a5c90a4 | [log] [tgz] |
---|---|---|
author | Juhyung Park <qkrwngud825@gmail.com> | Tue Feb 15 19:18:46 2022 +0900 |
committer | Jaegeuk Kim <jaegeuk@google.com> | Mon Mar 14 16:59:52 2022 -0700 |
tree | b145686f846cd4f2011e8584e5ed6aa35a75e4a6 | |
parent | 852111eea4eaf3c56e4ca9296a42b5b2a10df712 [diff] |
init: mount_handler: detect main block device more reliably Current code is not portable beyond SCSI devices (e.g., UFS). For example, eMMC and NVMe devices fail due to their extra postfix. Change its logic to rewind each character until "queue" directory appears. Test: Confirm md0p1, sda20, nvme0n1p3, mmcblk0p3 are all handled well. Change-Id: I585ccf2d4a72f6ef8ecb203acdd72a1e32d3e749 Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>