Skip to content

Commit

Permalink
fix(network-manager): avoid calling unavailable dracut-logger functions
Browse files Browse the repository at this point in the history
The dracut-logger functions are only available during the initrd
generation. For internal initrd scripts that run at boot,
dracut-lib provides warn() and info().
  • Loading branch information
aafeijoo-suse authored and johannbg committed Apr 9, 2022
1 parent 65e41b5 commit b7059ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/35network-manager/nm-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ nm_generate_connections() {
# shellcheck disable=SC2046
/usr/lib/nm-initrd-generator -- $(getcmdline)
else
derror "nm-initrd-generator not found"
warn "nm-initrd-generator not found"
fi

if getargbool 0 rd.neednet; then
Expand Down

0 comments on commit b7059ae

Please sign in to comment.