X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F12fstab;h=f38eee722f4fdcd1ed1c4b94b1d2b8698cffce4c;hb=94853efc193b3721c9be6d89a756c660b6b57d05;hp=936eeae32752dd8a8d9f0fb72e7809834c7b16c0;hpb=fbb80585bf415c39f4fe6c0f7f8a24bb765485db;p=live-boot-grml.git diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index 936eeae..f38eee7 100755 --- a/scripts/live-bottom/12fstab +++ b/scripts/live-bottom/12fstab @@ -28,11 +28,14 @@ then exit 0 fi -log_begin_msg "Configuring fstab..." +log_begin_msg "Configuring fstab" # live-initramfs script -cat >> ${FSTAB} << EOF +# Create a fake fstab only if it is not already there +if [ ! -f "${FSTAB}" ] || grep -qs 'UNCONFIGURED FSTAB FOR BASE SYSTEM' "${FSTAB}" +then + cat >> ${FSTAB} << EOF # /etc/fstab: static file system information. # # @@ -40,6 +43,7 @@ cat >> ${FSTAB} << EOF ${UNIONTYPE} / ${UNIONTYPE} rw 0 0 tmpfs /tmp tmpfs nosuid,nodev 0 0 EOF +fi # disabled for now #rm -f /root/etc/rcS.d/S*checkroot.sh