[Libosinfo] [PATCH] script, rhel: Specify boot partition size for < 7

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Feb 11 13:50:08 UTC 2015


Seems even RHEL 6.6 Anaconda can't handle the --recommended option of
part command so lets not use that unless its RHEL >= 7.
---
 data/install-scripts/rhel.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/data/install-scripts/rhel.xml b/data/install-scripts/rhel.xml
index efe91e5..f22e6c6 100644
--- a/data/install-scripts/rhel.xml
+++ b/data/install-scripts/rhel.xml
@@ -72,7 +72,15 @@ zerombr
 
 clearpart --all --drives=<xsl:call-template name="target-disk"/>
 
+
+<xsl:choose>
+  <xsl:when test="os/version < 7">
+part /boot --fstype ext4 --size=500 --ondisk=<xsl:call-template name="target-disk"/>
+  </xsl:when>
+  <xsl:otherwise>
 part /boot --fstype ext4 --recommended --ondisk=<xsl:call-template name="target-disk"/>
+  </xsl:otherwise>
+</xsl:choose>
 part pv.2 --size=1 --grow --ondisk=<xsl:call-template name="target-disk"/>
 volgroup VolGroup00 --pesize=32768 pv.2
 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536
@@ -174,7 +182,14 @@ clearpart --all --drives=<xsl:call-template name="target-disk"/>
 
 firstboot --disable
 
+<xsl:choose>
+  <xsl:when test="os/version < 7">
+part /boot --fstype ext4 --size=500 --ondisk=<xsl:call-template name="target-disk"/>
+  </xsl:when>
+  <xsl:otherwise>
 part /boot --fstype ext4 --recommended --ondisk=<xsl:call-template name="target-disk"/>
+  </xsl:otherwise>
+</xsl:choose>
 part pv.2 --size=1 --grow --ondisk=<xsl:call-template name="target-disk"/>
 volgroup VolGroup00 --pesize=32768 pv.2
 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536
-- 
2.1.0




More information about the Libosinfo mailing list