From: Marcin Krol Date: Tue, 13 Sep 2022 18:23:35 +0000 (+0200) Subject: - make keyscript option compatible with Debian X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=44320ffce49eb256e862bddc446d91c1b7d962b9;hp=b209f50dd69f467ee77559898c087669c1254b39;p=packages%2Fdracut.git - make keyscript option compatible with Debian --- diff --git a/crypttab-keyscript.patch b/crypttab-keyscript.patch index df1b59f..2d27b91 100644 --- a/crypttab-keyscript.patch +++ b/crypttab-keyscript.patch @@ -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 diff --git a/dracut.spec b/dracut.spec index 3a669b2..9fc6a08 100644 --- a/dracut.spec +++ b/dracut.spec @@ -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