From 6e76aee6b259c02eb23082f6f3285fa6c164b52d Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 2 Dec 2013 11:05:21 +0100 Subject: [PATCH] dracut.sh: skip crypt swaps with password files --- dracut.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dracut.sh b/dracut.sh index 5f14d50..b03522b 100755 --- a/dracut.sh +++ b/dracut.sh @@ -945,6 +945,8 @@ if [[ $hostonly ]]; then [[ $_mapper = \#* ]] && continue [[ "$_d" -ef /dev/mapper/"$_mapper" ]] || continue [[ "$_o" ]] || _o="$_p" + # skip entries with password files + [[ "$_p" == /* ]] && [[ -f $_p ]] && continue 2 # skip mkswap swap [[ $_o == *swap* ]] && continue 2 done < /etc/crypttab