X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F12fstab;h=ca83626da8c46cc547c4a5cb3fa021a8a7e4fd27;hb=bf36396d635f664157bef6448040c967dc96d563;hp=73e18d49f1eb8d18affdc877f551429d012145bd;hpb=fdd8036ba32ad88e83a61191cc4597ae060355d2;p=live-boot-grml.git diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index 73e18d4..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