]> TLD Linux GIT Repositories - packages/dracut.git/commitdiff
- make keyscript option compatible with Debian
authorMarcin Krol <hawk@tld-linux.org>
Tue, 13 Sep 2022 18:23:35 +0000 (20:23 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 13 Sep 2022 18:23:35 +0000 (20:23 +0200)
crypttab-keyscript.patch
dracut.spec

index df1b59f8a8de2252528fa6b99e19977aeb80a60c..2d27b918a62cd08634792d8a708d8ebc293ba768 100644 (file)
@@ -17,7 +17,7 @@ diff -urpa dracut-056.orig/modules.d/90crypt/cryptroot-ask.sh dracut-056/modules
  
 +if [ ! -z "$keyscript" -a -x "$keyscript" ]; then
 +    info "Executing keyscript $keyscript"
-+    eval $keyscript
++    eval $keyscript "$luksfile" | cryptsetup -d - $cryptsetupopts luksOpen "$device" "$luksname"
 +    if [ $? -eq 0 ]; then
 +        ask_passphrase=0
 +    fi
index 3a669b24aa0c92c9c79dc124c9c80252e190ad79..9fc6a0856335701e0c917cd870d04ac489c8b0fa 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Initramfs generator using udev
 Summary(pl.UTF-8):     Generator initramfs wykorzystujÄ…cy udev
 Name:          dracut
 Version:       056
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Base
 Source0:       https://www.kernel.org/pub/linux/utils/boot/dracut/%{name}-%{version}.tar.xz