Hey, On Sat, Oct 11, 2014 at 02:40:27PM +0100, Zeeshan Ali (Khattak) wrote: > 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. ACK. Fwiw (and totally unrelated to your changes), I'd go with a much lower swap space on minimal instances Christophe > --- > 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 > 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
Attachment:
pgpZAOYsJnKK8.pgp
Description: PGP signature
_______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo