From 7103c4bce9240d5896a0d207c216e0f6270ad2e8 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Wed, 6 Apr 2022 10:25:23 +0200 Subject: [PATCH] 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(). --- modules.d/45ifcfg/write-ifcfg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh index 345863f995..854d294dfd 100755 --- a/modules.d/45ifcfg/write-ifcfg.sh +++ b/modules.d/45ifcfg/write-ifcfg.sh @@ -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