Skip to content

Commit

Permalink
fix(ifcfg): 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 b7059ae commit 7103c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/45ifcfg/write-ifcfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ interface_bind() {
local _macaddr="$2"

if [ ! -e "/sys/class/net/$_netif" ]; then
derror "Cannot find network interface '$_netif'!"
warn "Cannot find network interface '$_netif'!"
return 1
fi

Expand Down

0 comments on commit 7103c4b

Please sign in to comment.