From 012d7db27da7416471ed49ee2ca666ab95837f47 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Wed, 30 Mar 2022 09:27:17 +0200 Subject: [PATCH] fix(dracut.sh): avoid calling dfatal before dracut-logger is sourced dracut-logger is sourced in dracut-init, so any earlier calls to logger functions before dracut-init is sourced fail. Fix issue #1758 --- dracut.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut.sh b/dracut.sh index 94a3b068d..524ac115f 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1042,12 +1042,12 @@ if ! [[ $outfile ]]; then if [[ $uefi == "yes" ]]; then # shellcheck disable=SC2154 if [[ -n $uefi_secureboot_key && -z $uefi_secureboot_cert ]] || [[ -z $uefi_secureboot_key && -n $uefi_secureboot_cert ]]; then - dfatal "Need 'uefi_secureboot_key' and 'uefi_secureboot_cert' both to be set." + printf "%s\n" "dracut: Need 'uefi_secureboot_key' and 'uefi_secureboot_cert' both to be set." >&2 exit 1 fi if [[ -n $uefi_secureboot_key && -n $uefi_secureboot_cert ]] && ! command -v sbsign &> /dev/null; then - dfatal "Need 'sbsign' to create a signed UEFI executable" + printf "%s\n" "dracut: Need 'sbsign' to create a signed UEFI executable." >&2 exit 1 fi -- 2.47.3