summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-20 12:01:17 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-20 12:01:17 +0200
commit546d5dacf5d680526e3b2ddea757487c938a64c9 (patch)
treeb335b3d269409aee983346956f1d9c52cc2a06e4
parent3411ad661a27643834d6394949b25583ba8c34eb (diff)
downloaddracut-546d5dacf5d680526e3b2ddea757487c938a64c9.tar.gz
dracut-546d5dacf5d680526e3b2ddea757487c938a64c9.tar.bz2
dracut-546d5dacf5d680526e3b2ddea757487c938a64c9.zip
dracut.sh: recognize swap entries in fstab with mountpoint "none"
-rwxr-xr-xdracut.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/dracut.sh b/dracut.sh
index 3ae3874c..117f877c 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -910,7 +910,8 @@ if [[ $hostonly ]]; then
while read _d _m _t _o _r; do
[[ "$_d" == \#* ]] && continue
[[ $_d ]] || continue
- [[ $_t != "swap" ]] || [[ $_m != "swap" ]] && continue
+ [[ $_t != "swap" ]] && continue
+ [[ $_m != "swap" ]] && [[ $_m != "none" ]] && continue
[[ "$_o" == *noauto* ]] && continue
[[ "$_d" == UUID\=* ]] && _d="/dev/disk/by-uuid/${_d#UUID=}"
[[ "$_d" == LABEL\=* ]] && _d="/dev/disk/by-label/$_d#LABEL=}"