dracut/0001-network-do-not-depend-on-ifcfg.patch
Harald Hoyer fe48c9c4e5 dracut-032-23.git20130904
- fixed curl error with zero size kickstart file
Resolves: rhbz#989133
- fixed systemd-cat failure, when systemd is installed
  but not actually running
Resolves: rhbz#1002021
- do not fail on empty dracut module directories
Resolves: rhbz#1003153
2013-09-04 13:43:12 +02:00

36 lines
1.0 KiB
Diff

From f34e1d6b0ecf907066b6083e70d5eac84c2ba2f5 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Tue, 20 Aug 2013 15:09:33 +0200
Subject: [PATCH] network: do not depend on ifcfg
rather let ifcfg return 0 if /etc/sysconfig/network-scripts exists
---
modules.d/40network/module-setup.sh | 1 -
modules.d/45ifcfg/module-setup.sh | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index a5f635d..464e0cb 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -16,7 +16,6 @@ check() {
}
depends() {
- [ -d /etc/sysconfig/network-scripts/ ] && echo ifcfg
return 0
}
diff --git a/modules.d/45ifcfg/module-setup.sh b/modules.d/45ifcfg/module-setup.sh
index 3cd0c48..ce53e5e 100755
--- a/modules.d/45ifcfg/module-setup.sh
+++ b/modules.d/45ifcfg/module-setup.sh
@@ -3,6 +3,7 @@
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
+ [[ -d /etc/sysconfig/network-scripts ]] && return 0
return 255
}