32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 7103c4bce9240d5896a0d207c216e0f6270ad2e8 Mon Sep 17 00:00:00 2001
|
|
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
|
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().
|
|
|
|
Reference:https://github.com/dracutdevs/dracut/commit/7103c4bce9240d5896a0d207c216e0f6270ad2e8
|
|
Conflict:NA
|
|
---
|
|
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 345863f9..854d294d 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
|
|
|
|
--
|
|
2.23.0
|
|
|