projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing mounting of rootfs, cow and medium filesystems (Closes: #696495).
[live-boot-grml.git]
/
scripts
/
boot
/
3020-swapon
diff --git
a/scripts/boot/3020-swapon
b/scripts/boot/3020-swapon
index
82e998a
..
e7aed6c
100755
(executable)
--- a/
scripts/boot/3020-swapon
+++ b/
scripts/boot/3020-swapon
@@
-18,14
+18,18
@@
Swap ()
esac
done
esac
done
- if [ "${LIVE_SWAP}" != "true" ]
- then
- return 0
- fi
+ case "${LIVE_SWAP}" in
+ true)
+ ;;
+
+ *)
+ return 0
+ ;;
+ esac
LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"
LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"
- if [ -e /r
un
]
+ if [ -e /r
oot/etc/fstab.d
]
then
# wheezy
_FSTAB="/root/etc/fstab.d/swap"
then
# wheezy
_FSTAB="/root/etc/fstab.d/swap"