Hi
a new block mount has been added to openwrt. here is a short howto for
using it.
you can do "block info" to get the same output that blkid delivered
you can do "block mount" to mount all devices (same as what
/etc/init.d/fstab restart" used to do
if you run "block detect" you will get a sample uci file for the
currently attached block devices.
you can do "block detect > /etc/config/fstab" to store it
a sample config looks as follows
config 'global'
# mount swap devices that dont have their own config section
option anon_swap '0'
# mount block devices that dont have their own config section
option anon_mount '0'
# automatically mount block devices when they appear
option auto_swap '1'
# automatically mount swap devices when they appear
option auto_mount '1'
# wait X seconds before trying to mount root devices on boot
option delay_root '0'
# run e2fsck on device prior to a mount
option check_fs '0'
# my swap partition i can either pass device or uuid
config 'swap'
option device 'sda1'
option uuid 'd3c87695-886f-4579-ae94-0a3bb3eb6046'
# my pivotroot device (ext4)
config 'mount'
option target '/'
option uuid '998d4bfc-81b5-469a-be2a-999ed2b81d88'
# and data partition (vfat)
config 'mount'
option target '/data'
option uuid 'e10e-6812'
if you want to use an overlay extroot, please use a section as follows
config 'mount'
option target '/overlay'
option uuid '998d4bfc-81b5-469a-be2a-999ed2b81d88'
if someone could update the wiki to hold this info i would be grateful
John
P.S.: i will close all block mount related tickets in trac now as i
think they are all related to the API having changed slightly. if you
think your bug still exists after reading this howto, lease reopen them
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel