X-Git-Url: https://git.tld-linux.org/?p=packages%2Fdracut.git;a=blobdiff_plain;f=crypttab-keyscript.patch;h=a276b23fd98ef0699273181045ffc8c0f31161be;hp=df1b59f8a8de2252528fa6b99e19977aeb80a60c;hb=HEAD;hpb=b209f50dd69f467ee77559898c087669c1254b39 diff --git a/crypttab-keyscript.patch b/crypttab-keyscript.patch index df1b59f..a857794 100644 --- a/crypttab-keyscript.patch +++ b/crypttab-keyscript.patch @@ -11,13 +11,14 @@ diff -urpa dracut-056.orig/modules.d/90crypt/cryptroot-ask.sh dracut-056/modules esac shift done -@@ -174,6 +177,14 @@ else +@@ -174,6 +177,15 @@ else done fi +if [ ! -z "$keyscript" -a -x "$keyscript" ]; then + info "Executing keyscript $keyscript" -+ eval $keyscript ++ eval $keyscript "$luksfile" | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname" ++ cryptsetup status "$luksname" > /dev/null 2>&1 + if [ $? -eq 0 ]; then + ask_passphrase=0 + fi