diff --git a/initrd/init b/initrd/init index 20bbbc3..c795d73 100755 --- a/initrd/init +++ b/initrd/init @@ -29,6 +29,15 @@ hwclock -l -s . /etc/functions . /etc/config +# Add our boot devices into the /etc/fstab, if they are defined +# in the configuration file. +if [ ! -z "$CONFIG_BOOT_DEV" ]; then + echo >> /etc/fstab "$CONFIG_BOOT_DEV /boot auto defaults,ro 0 0" +fi +if [ ! -z "$CONFIG_USB_BOOT_DEV" ]; then + echo >> /etc/fstab "$CONFIG_USB_BOOT_DEV /media auto defaults,ro 0 0" +fi + if [ ! -x "$CONFIG_BOOTSCRIPT" ]; then recovery 'Boot script missing? Entering recovery shell' # just in case...