X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F12fstab;h=936eeae32752dd8a8d9f0fb72e7809834c7b16c0;hb=cabcd3723fc124a3816f7e992912189e65c7b382;hp=b5b5602ca9e993d12efa79bee46b8dca68500cf9;hpb=8319c25431ac31bb67621a27dc569abedccf1ab1;p=live-boot-grml.git diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index b5b5602..936eeae 100755 --- a/scripts/live-bottom/12fstab +++ b/scripts/live-bottom/12fstab @@ -5,6 +5,7 @@ # initramfs-tools header PREREQ="" +FSTAB=/root/etc/fstab prereqs() { @@ -22,13 +23,20 @@ esac . /scripts/live-functions +if [ -n "${NOFSTAB}" ] +then + exit 0 +fi + log_begin_msg "Configuring fstab..." # live-initramfs script -FSTAB=/root/etc/fstab +cat >> ${FSTAB} << EOF +# /etc/fstab: static file system information. +# +# -cat >> $FSTAB << EOF ${UNIONTYPE} / ${UNIONTYPE} rw 0 0 tmpfs /tmp tmpfs nosuid,nodev 0 0 EOF