mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
add /boot and /media to /etc/fstab on startup (issue #220)
This commit is contained in:
parent
ba98d5dda6
commit
86f3e9f5dc
@ -29,6 +29,15 @@ hwclock -l -s
|
|||||||
. /etc/functions
|
. /etc/functions
|
||||||
. /etc/config
|
. /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
|
if [ ! -x "$CONFIG_BOOTSCRIPT" ]; then
|
||||||
recovery 'Boot script missing? Entering recovery shell'
|
recovery 'Boot script missing? Entering recovery shell'
|
||||||
# just in case...
|
# just in case...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user