[PATCH] fedora,rhel: Bigger boot partition

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

 



I had a RHEL VM where I got into trouble when yum wasn't able to upgrade
system as my boot partition was too small to fit new kernel image.
Kickstart format allows us to just say that we want the size to be
whatever is the recommended value so lets make use of that.

I tested against RHEL 7.0 and /boot was allocated 512MB.
---
 data/install-scripts/fedora.xml | 2 +-
 data/install-scripts/rhel.xml   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/data/install-scripts/fedora.xml b/data/install-scripts/fedora.xml
index e4113ae..76f28da 100644
--- a/data/install-scripts/fedora.xml
+++ b/data/install-scripts/fedora.xml
@@ -120,7 +120,7 @@ clearpart --all --drives=<xsl:call-template name="target-disk"/>
 <xsl:if test="os/version &gt; 15">
 part biosboot --fstype=biosboot --size=1
 </xsl:if>
-part /boot --fstype <xsl:call-template name="bootfs"/> --size=200 --ondisk=<xsl:call-template name="target-disk"/>
+part /boot --fstype <xsl:call-template name="bootfs"/> --recommended --ondisk=<xsl:call-template name="target-disk"/>
 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
diff --git a/data/install-scripts/rhel.xml b/data/install-scripts/rhel.xml
index d647072..097bd04 100644
--- a/data/install-scripts/rhel.xml
+++ b/data/install-scripts/rhel.xml
@@ -72,7 +72,7 @@ zerombr
 
 clearpart --all --drives=<xsl:call-template name="target-disk"/>
 
-part /boot --fstype ext4 --size=200 --ondisk=<xsl:call-template name="target-disk"/>
+part /boot --fstype ext4 --recommended --ondisk=<xsl:call-template name="target-disk"/>
 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 +174,7 @@ clearpart --all --drives=<xsl:call-template name="target-disk"/>
 
 firstboot --disable
 
-part /boot --fstype ext4 --size=200 --ondisk=<xsl:call-template name="target-disk"/>
+part /boot --fstype ext4 --recommended --ondisk=<xsl:call-template name="target-disk"/>
 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