From f082dad903a72dbe5ee6f24a38c053c7a2def9b4 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Mon, 22 Aug 2022 10:06:34 +0200 Subject: [PATCH] refactor(dracut.sh): use logger functions instead of printf dracut-logger is sourced in dracut-init, so any printf calls after sourcing dracut-init should be replaced with logger functions. --- dracut.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut.sh b/dracut.sh index b0506749f..bfe35fbac 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1310,8 +1310,8 @@ fi # shellcheck disable=SC2154 if [[ $no_kernel != yes ]] && ! [[ -d $srcmods ]]; then - printf "%s\n" "dracut: Cannot find module directory $srcmods" >&2 - printf "%s\n" "dracut: and --no-kernel was not specified" >&2 + dfatal "Cannot find module directory $srcmods" + dfatal "and --no-kernel was not specified" exit 1 fi -- 2.47.3