Skip to content

Commit 7103c4b

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(ifcfg): avoid calling unavailable dracut-logger functions
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().
1 parent b7059ae commit 7103c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules.d/45ifcfg/write-ifcfg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ interface_bind() {
104104
local _macaddr="$2"
105105

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

0 commit comments

Comments
 (0)