Adding live-initramfs 1.91.3-1.
[live-boot-grml.git] / scripts / live-bottom / 12fstab
1 #!/bin/sh
2
3 #set -e
4
5 # initramfs-tools header
6
7 PREREQ=""
8
9 prereqs()
10 {
11         echo "${PREREQ}"
12 }
13
14 case "${1}" in
15         prereqs)
16                 prereqs
17                 exit 0
18                 ;;
19 esac
20
21 # live-initramfs header
22
23 . /scripts/live-functions
24
25 log_begin_msg "Configuring fstab..."
26
27 # live-initramfs script
28
29 FSTAB=/root/etc/fstab
30
31 cat > $FSTAB <<EOF
32 ${UNIONTYPE} / ${UNIONTYPE} rw 0 0
33 tmpfs /tmp tmpfs nosuid,nodev 0 0
34 EOF
35
36 # disabled for now
37 #rm -f /root/etc/rcS.d/S*checkroot.sh
38
39 if [ "${NOFASTBOOT}" != "Yes" ]
40 then
41         touch root/fastboot
42 fi
43
44 log_end_msg