From: Harald Hoyer Date: Tue, 20 Aug 2013 10:01:17 +0000 (+0200) Subject: dracut.sh: recognize swap entries in fstab with mountpoint "none" X-Git-Tag: 032~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=546d5dacf5d680526e3b2ddea757487c938a64c9;p=platform%2Fupstream%2Fdracut.git dracut.sh: recognize swap entries in fstab with mountpoint "none" --- 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=}"