Checking for ${overlay}, not ${device} when trying to close ${overlay}.
[debian-live-boot.git] / scripts / boot / 9990-fstab.sh
blob5ae9546ab927de2a61dc9e7f409666fcef0d3297
1 #!/bin/sh
3 #set -e
5 Fstab ()
7 # FIXME: stop hardcoding overloading of initramfs-tools functions
8 . /scripts/functions
9 . /lib/live/boot/9990-initramfs-tools.sh
11 if [ -n "${NOFSTAB}" ]
12 then
13 return
16 log_begin_msg "Configuring fstab"
18 if ! grep -qs "^${UNIONTYPE}" /root/etc/fstab.d/live
19 then
20 echo "${UNIONTYPE} / ${UNIONTYPE} rw 0 0" >> /root/etc/fstab.d/live
23 if ! grep -qs "^tmpfs /tmp" /root/etc/fstab.d/live
24 then
25 echo "tmpfs /tmp tmpfs nosuid,nodev 0 0" >> /root/etc/fstab.d/live
28 log_end_msg