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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 &lt; 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 &lt; 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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux