[Libosinfo] [PATCH 01/11] fedora, rhel, installer: Don't use "--activate" with older OSes

Fabiano Fidêncio fidencio at redhat.com
Sat Mar 23 14:09:24 UTC 2013


---
 data/install-scripts/fedora.xml | 2 +-
 data/install-scripts/rhel.xml   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/install-scripts/fedora.xml b/data/install-scripts/fedora.xml
index 6e8a92d..0d14b28 100644
--- a/data/install-scripts/fedora.xml
+++ b/data/install-scripts/fedora.xml
@@ -216,7 +216,7 @@ reboot
 install
 keyboard '<xsl:call-template name="keyboard"/>'
 lang <xsl:value-of select="config/l10n-language"/>
-network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/> --activate
+network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/> <xsl:if test="os/version > 16">--activate</xsl:if>
 rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
 firewall --disabled
 authconfig --enableshadow --enablemd5
diff --git a/data/install-scripts/rhel.xml b/data/install-scripts/rhel.xml
index 9c17f11..5942826 100644
--- a/data/install-scripts/rhel.xml
+++ b/data/install-scripts/rhel.xml
@@ -124,7 +124,7 @@ reboot
 install
 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"/> --activate
+network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/> <xsl:if test="os/version > 6.0">--activate</xsl:if>
 rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
 firewall --disabled
 authconfig --enableshadow --enablemd5
-- 
1.8.1.4




More information about the Libosinfo mailing list