Improving test for /etc/fstab.d support by testing for its existence instead of ...
authorTails developers <amnesia@boum.org>
Sat, 9 Feb 2013 07:13:42 +0000 (08:13 +0100)
committerDaniel Baumann <daniel@debian.org>
Sat, 9 Feb 2013 07:13:42 +0000 (08:13 +0100)
scripts/boot/3020-swapon
scripts/boot/9990-fstab.sh

index 7541c26..e7aed6c 100755 (executable)
@@ -29,7 +29,7 @@ Swap ()
 
        LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"
 
-       if [ -e /run ]
+       if [ -e /root/etc/fstab.d ]
        then
                # wheezy
                _FSTAB="/root/etc/fstab.d/swap"
index dc3f07b..abc7b23 100755 (executable)
@@ -13,7 +13,7 @@ Fstab ()
                return
        fi
 
-       if [ -e /run ]
+       if [ -e /root/etc/fstab.d ]
        then
                # wheezy
                _FSTAB="/root/etc/fstab.d/live"