diff options
author | Harald Hoyer <harald@redhat.com> | 2013-08-20 12:01:17 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-08-20 12:01:17 +0200 |
commit | 546d5dacf5d680526e3b2ddea757487c938a64c9 (patch) | |
tree | b335b3d269409aee983346956f1d9c52cc2a06e4 | |
parent | 3411ad661a27643834d6394949b25583ba8c34eb (diff) | |
download | dracut-546d5dacf5d680526e3b2ddea757487c938a64c9.tar.gz dracut-546d5dacf5d680526e3b2ddea757487c938a64c9.tar.bz2 dracut-546d5dacf5d680526e3b2ddea757487c938a64c9.zip |
dracut.sh: recognize swap entries in fstab with mountpoint "none"
-rwxr-xr-x | dracut.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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=}" |