Support /dev/mapper/rootfs root device 46/258146/8
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 11 May 2021 07:50:27 +0000 (16:50 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Wed, 12 May 2021 05:59:38 +0000 (14:59 +0900)
commita20c85b76c088a260407156cbfbab5afb142f83a
treef4b1648d27d33ca0693e5c677c86c53adcd59a63
parent5b4e577e054dc5643d9a874ac4c887f284d7e873
Support /dev/mapper/rootfs root device

Root device is /dev/mapper/rootfs on RPI4 with dm-verity.

So, the actual root device is not correctly found,
and /dev/mmcblk0 is not recognized as an internal device.

Storaged recognizes the partitions of /dev/mmcblk0p* as external devices,
and storaged mounts them to /opt/media/SDCard@*.

///////////////////////////////////////////////////////////////////
/dev/mmcblk0p1     65390  20830   44560  32% /opt/media/SDCard@1
/dev/mmcblk0p10    59365   1299   53480   3% /opt/media/SDCard@10
/dev/mmcblk0p11   120355   1555  109805   2% /opt/media/SDCard@11
///////////////////////////////////////////////////////////////////

Change-Id: I42f211684e519371a23ee0b403bd3d941d243bb0
packaging/storaged.spec
src/block/CMakeLists.txt
src/block/block.c