summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=}"