]> TLD Linux GIT Repositories - packages/dracut.git/blobdiff - crypttab-keyscript.patch
- upstream fix for microcode check
[packages/dracut.git] / crypttab-keyscript.patch
index a276b23fd98ef0699273181045ffc8c0f31161be..a857794d037f69f0afd7e0b2ee74093fde9fe6df 100644 (file)
@@ -1,7 +1,7 @@
-diff -urpa dracut-048.orig/modules.d/90crypt/cryptroot-ask.sh dracut-048/modules.d/90crypt/cryptroot-ask.sh
---- dracut-048.orig/modules.d/90crypt/cryptroot-ask.sh 2018-07-06 08:37:51.000000000 +0000
-+++ dracut-048/modules.d/90crypt/cryptroot-ask.sh      2018-07-21 14:44:47.121435253 +0000
-@@ -106,6 +106,9 @@ while [ $# -gt 0 ]; do
+diff -urpa dracut-056.orig/modules.d/90crypt/cryptroot-ask.sh dracut-056/modules.d/90crypt/cryptroot-ask.sh
+--- dracut-056.orig/modules.d/90crypt/cryptroot-ask.sh 2022-02-18 12:32:53.000000000 +0100
++++ dracut-056/modules.d/90crypt/cryptroot-ask.sh      2022-08-28 19:27:11.079536407 +0200
+@@ -112,6 +112,9 @@ while [ $# -gt 0 ]; do
          header=*)
              cryptsetupopts="${cryptsetupopts} --${1}"
              ;;
@@ -11,13 +11,14 @@ diff -urpa dracut-048.orig/modules.d/90crypt/cryptroot-ask.sh dracut-048/modules
      esac
      shift
  done
-@@ -163,6 +166,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
@@ -26,10 +27,10 @@ diff -urpa dracut-048.orig/modules.d/90crypt/cryptroot-ask.sh dracut-048/modules
  if [ $ask_passphrase -ne 0 ]; then
      luks_open="$(command -v cryptsetup) $cryptsetupopts luksOpen"
      _timeout=$(getargs "rd.luks.timeout")
-diff -urpa dracut-048.orig/modules.d/90crypt/module-setup.sh dracut-048/modules.d/90crypt/module-setup.sh
---- dracut-048.orig/modules.d/90crypt/module-setup.sh  2018-07-06 08:37:51.000000000 +0000
-+++ dracut-048/modules.d/90crypt/module-setup.sh       2018-07-21 14:44:47.121435253 +0000
-@@ -97,10 +97,26 @@ install() {
+diff -urpa dracut-056.orig/modules.d/90crypt/module-setup.sh dracut-056/modules.d/90crypt/module-setup.sh
+--- dracut-056.orig/modules.d/90crypt/module-setup.sh  2022-02-18 12:32:53.000000000 +0100
++++ dracut-056/modules.d/90crypt/module-setup.sh       2022-08-28 19:27:11.079536407 +0200
+@@ -136,10 +136,26 @@ install() {
                          forceentry="yes"
                          break
                          ;;