X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F12fstab;h=f38eee722f4fdcd1ed1c4b94b1d2b8698cffce4c;hb=f631495de9586b0be892226bcdcf6802d8fc2143;hp=fa9c64238b1714df5a327508c46d95edc1442487;hpb=9fc9e2a1a11b0edada38cb501fefe4f58aa414ac;p=live-boot-grml.git diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index fa9c642..f38eee7 100755 --- a/scripts/live-bottom/12fstab +++ b/scripts/live-bottom/12fstab @@ -1,31 +1,56 @@ #!/bin/sh +#set -e + +# initramfs-tools header + PREREQ="" -DESCRIPTION="Configuring fstab..." FSTAB=/root/etc/fstab -. /scripts/live-functions - prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /scripts/live-functions -cat > $FSTAB <> ${FSTAB} << EOF +# /etc/fstab: static file system information. +# +# + +${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 -rm -f /root/etc/rcS.d/S*checkroot.sh +if [ "${NOFASTBOOT}" != "Yes" ] +then + touch root/fastboot +fi log_end_msg