From 58cfa8151f8cf989063f477bddf9748a47287ef1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 20 Dec 2018 07:57:46 -0800 Subject: [PATCH] Increase boot.iso rootfs to 3GiB Signed-off-by: Stephen Gallagher --- 0001-Change-rootfs-default-size-to-3GiB.patch | 32 +++++++++++++++++++ lorax.spec | 9 +++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 0001-Change-rootfs-default-size-to-3GiB.patch diff --git a/0001-Change-rootfs-default-size-to-3GiB.patch b/0001-Change-rootfs-default-size-to-3GiB.patch new file mode 100644 index 0000000..b42da53 --- /dev/null +++ b/0001-Change-rootfs-default-size-to-3GiB.patch @@ -0,0 +1,32 @@ +From 787ac30c410e342b496d589bed142e474a467d54 Mon Sep 17 00:00:00 2001 +From: Stephen Gallagher +Date: Wed, 28 Oct 2020 08:41:04 -0400 +Subject: [PATCH] Change rootfs default size to 3GiB + +Signed-off-by: Stephen Gallagher +--- + src/pylorax/cmdline.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/pylorax/cmdline.py b/src/pylorax/cmdline.py +index 59e851d3d46523f6cb82cd2796309f13c38d44c8..4ac7934b74667884f0be41df58f2762cd9a79081 100644 +--- a/src/pylorax/cmdline.py ++++ b/src/pylorax/cmdline.py +@@ -101,12 +101,12 @@ def lorax_parser(dracut_default=""): + help="Directory containing all the templates. Overrides config file sharedir") + optional.add_argument("--enablerepo", action="append", default=[], dest="enablerepos", + metavar="[repo]", help="Names of repos to enable") + optional.add_argument("--disablerepo", action="append", default=[], dest="disablerepos", + metavar="[repo]", help="Names of repos to disable") +- optional.add_argument("--rootfs-size", type=int, default=2, +- help="Size of root filesystem in GiB. Defaults to 2.") ++ optional.add_argument("--rootfs-size", type=int, default=3, ++ help="Size of root filesystem in GiB. Defaults to 3.") + optional.add_argument("--noverifyssl", action="store_true", default=False, + help="Do not verify SSL certificates") + optional.add_argument("--dnfplugin", action="append", default=[], dest="dnfplugins", + help="Enable a DNF plugin by name/glob, or * to enable all of them.") + optional.add_argument("--squashfs-only", action="store_true", default=False, +-- +2.28.0 + diff --git a/lorax.spec b/lorax.spec index 862de57..37a68c2 100644 --- a/lorax.spec +++ b/lorax.spec @@ -4,7 +4,7 @@ Name: lorax Version: 34.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tool for creating the anaconda install images License: GPLv2+ @@ -15,6 +15,9 @@ URL: https://github.com/weldr/lorax # tito build --tgz Source0: %{name}-%{version}.tar.gz +# Increase boot.iso rootfs to 3GiB rhbz#1661169 +Patch0000: 0001-Change-rootfs-default-size-to-3GiB.patch + BuildRequires: python3-devel BuildRequires: make BuildRequires: systemd-rpm-macros @@ -148,6 +151,7 @@ build images, etc. from the command line. %prep %setup -q -n %{name}-%{version} +%patch0000 -p1 %build @@ -196,6 +200,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %{_mandir}/man1/composer-cli.1* %changelog +* Wed Oct 28 2020 Stephen Gallagher - 34.3-3 +- Increase boot.iso rootfs to 3GiB + * Tue Oct 27 2020 Brian C. Lane - 34.3-2 - Require lorax-templates-rhel for RHEL9