From 44320ffce49eb256e862bddc446d91c1b7d962b9 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 13 Sep 2022 20:23:35 +0200 Subject: [PATCH] - make keyscript option compatible with Debian --- crypttab-keyscript.patch | 2 +- dracut.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.46.0