Skip to content

Commit f082dad

Browse files
aafeijoo-susejohannbg
authored andcommitted
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.
1 parent d6d5558 commit f082dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dracut.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,8 +1310,8 @@ fi
13101310
13111311
# shellcheck disable=SC2154
13121312
if [[ $no_kernel != yes ]] && ! [[ -d $srcmods ]]; then
1313-
printf "%s\n" "dracut: Cannot find module directory $srcmods" >&2
1314-
printf "%s\n" "dracut: and --no-kernel was not specified" >&2
1313+
dfatal "Cannot find module directory $srcmods"
1314+
dfatal "and --no-kernel was not specified"
13151315
exit 1
13161316
fi
13171317

0 commit comments

Comments
 (0)