diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-14 15:37:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 14:42:49 +0200 |
commit | a1f6b4dbcdfd85c82e7ccd1e6be82264d16019ee (patch) | |
tree | 8464a69c8021c68531241594a499618bef894026 /commands | |
parent | c8773d5c22a2d6ded9bb3060842f1f62bc5dd945 (diff) | |
download | barebox-a1f6b4dbcdfd85c82e7ccd1e6be82264d16019ee.tar.gz barebox-a1f6b4dbcdfd85c82e7ccd1e6be82264d16019ee.tar.xz |
sandbox: hostfile: support registering images as barebox block devices
While we can mount file systems on cdevs in barebox, partition table
parsing only works for block devices. Allow for
--image=argument,blkdev to try to mount an image as block device.
This will fail for files that aren't of a multiple of the 512 byte
block size. Host OS block devices are suitable for use as barebox
block devices always, so that's the default unless overridden with
a ,cdev suffix.
The initcall level has been changed to occur after fs initcall level.
This is required, because we can't have automounts without / mounted.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions