[Libosinfo] [PATCH] rhel,script: Don't specify interface

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Feb 4 15:08:07 UTC 2015


Its not guaranteed that we'll have 'eth0' available or that it will be
named 'eth0' by kernel. Since kickstart allows us not to specify the
name of the interface, lets omit that and let kickstart choose the best
device for us.

This change has only been tested against RHEL 7.0. Would probably be
best to test against 6.x too.
---
 data/install-scripts/rhel.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/install-scripts/rhel.xml b/data/install-scripts/rhel.xml
index 097bd04..efe91e5 100644
--- a/data/install-scripts/rhel.xml
+++ b/data/install-scripts/rhel.xml
@@ -61,7 +61,7 @@ text
 keyboard us
 lang <xsl:value-of select="config/l10n-language"/>
 skipx
-network --device eth0 --bootproto dhcp
+network --bootproto dhcp
 rootpw <xsl:value-of select="config/admin-password"/>
 firewall --disabled
 authconfig --enableshadow --enablemd5
@@ -162,7 +162,7 @@ install
 cdrom
 keyboard us
 lang <xsl:value-of select="config/l10n-language"/>
-network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/>
+network --onboot yes --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/>
 rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
 firewall --disabled
 authconfig --enableshadow --enablemd5
-- 
2.1.0




More information about the Libosinfo mailing list