From: Antonio Alvarez Feijoo Date: Wed, 30 Mar 2022 07:27:17 +0000 (+0200) Subject: fix(dracut.sh): avoid calling dfatal before dracut-logger is sourced X-Git-Tag: 057~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012d7db27da7416471ed49ee2ca666ab95837f47;p=thirdparty%2Fdracut.git 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 --- 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