You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
874 B
22 lines
874 B
From 7f61e2c8957081d929a4f4fba8645b6b6e71d043 Mon Sep 17 00:00:00 2001 |
|
From: Harald Hoyer <harald@redhat.com> |
|
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 5f14d503..b03522bf 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
|
|
|