X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive-bottom%2F12fstab;h=ca83626da8c46cc547c4a5cb3fa021a8a7e4fd27;hb=b64e86e220b3313288a90d36c8b557e92bbd4ee5;hp=3d036c9700a9e0d271b3c91e1a904502d68a22b8;hpb=1e0a488b895cd6e2bf7141aa730f17da42a490f7;p=live-boot-grml.git diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index 3d036c9..ca83626 100755 --- a/scripts/live-bottom/12fstab +++ b/scripts/live-bottom/12fstab @@ -5,6 +5,7 @@ # initramfs-tools header PREREQ="" +FSTAB=/root/etc/fstab prereqs() { @@ -27,16 +28,23 @@ then exit 0 fi -log_begin_msg "Configuring fstab..." +if [ -s ${FSTAB} ] +then + log_begin_msg "Not touching preexisting fstab..." +else + log_begin_msg "Configuring fstab..." + + cat >> ${FSTAB} <<-EOF + # /etc/fstab: static file system information. + # + # + ${UNIONTYPE} / ${UNIONTYPE} rw 0 0 + tmpfs /tmp tmpfs nosuid,nodev 0 0 + EOF +fi # live-initramfs script -FSTAB=/root/etc/fstab - -cat >> ${FSTAB} << EOF -${UNIONTYPE} / ${UNIONTYPE} rw 0 0 -tmpfs /tmp tmpfs nosuid,nodev 0 0 -EOF # disabled for now #rm -f /root/etc/rcS.d/S*checkroot.sh