Blame SOURCES/0051-dracut.sh-skip-crypt-swaps-with-password-files.patch

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