Otherwise, operations that we perform in %post will show up
in the history of the installed system.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit a6e0b13c5d9da63f7c7d1c15a1a6af103df6c87c)
Do it as part of %post instead of waiting until boot.
There are several advantages to this approach: it makes boot
a little bit faster, and prevents a warning about sysvinit
compatibility being deprecated from being printed.
Most importantly, if the user decides to change the password
after installation, that change will now stick instead of
being reverted every time the machine is booted.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 2e51a65e040ac1caf556d0f87e3facea407ca301)
Despite specifically asking for just the English locale, the
all-encompassing langpack is automatically dragged in. Avoid
that by explicitly blocking its installation.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 6dd697fd38a3125fc790b11321172bc2aa3cb2fc)
Each image should have exactly one bootloader installed: either
GRUB2 for most images, or sd-boot for the experimental one.
efibootmgr is useful regardless of the bootloader, so it should
always be installed.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 5a833e9841344e69f05e3438685f115ac14d841d)
As the name suggests, these images should contain @core and
little else. For reference, a regular Fedora Workstation
doesn't include all packages in that group.
Since we're no longer installing @anaconda-tools, stop
mentioning it in comments.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 53025f548c6cab2b83dcfdb44e6d798de1163dc2)
Both the client and server parts. No need to install them
explicitly.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 9eba032a371408489e9869ee5292b5318a7caef4)
Services are enabled by default, so there's no need to
explicitly disable them, and disabling a service that's not
installed is a no-op, so we can just use the same exact call
everywhere.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit c3abb28ef8528f6f80cd27eb00c737db7ddd1524)
DEBUG util.py:443: Unable to create appliance : Unable to install: Transaction test error:
DEBUG util.py:443: installing package iwlwifi-mvm-firmware-20240312-1.fc40.noarch needs 19MB more space on the / filesystem
DEBUG util.py:443: installing package libertas-firmware-20240312-1.fc40.noarch needs 20MB more space on the / filesystem
DEBUG util.py:443: installing package uboot-images-riscv64-1:2024.04-1.0.riscv64.fc40.noarch needs 42MB more space on the / filesystem
DEBUG util.py:443: installing package systemd-boot-unsigned-255.4-1.fc40.riscv64 needs 43MB more space on the / filesystem
DEBUG util.py:443: installing package rootfiles-8.1-36.fc40.noarch needs 43MB more space on the / filesystem
DEBUG util.py:443: installing package poke-vim-3.90.3-1.fc40.riscv64 needs 43MB more space on the / filesystem
DEBUG util.py:443: installing package edk2-ext4-20230825-13.0.riscv64.fc38.noarch needs 43MB more space on the / filesystem
DEBUG util.py:443: installing package alsa-sof-firmware-2023.12.1-1.fc40.noarch needs 49MB more space on the / filesystem
DEBUG util.py:443: Error Summary
DEBUG util.py:443: -------------
DEBUG util.py:443: Disk Requirements:
DEBUG util.py:443: At least 49MB more space needed on the / filesystem.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
DEBUG util.py:444: Error Summary
DEBUG util.py:444: -------------
DEBUG util.py:444: Disk Requirements:
DEBUG util.py:444: At least 49MB more space needed on the / filesystem.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
We might use this for next-gen tooling for new disk image generation.
Fedora Asahi and Cloud images already use it.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
We used to have a minimal image back in the Fedora 32 days,
but it got lost along the way. Reintroduce it.
I didn't try too hard to make it as small as possible, but
simply by taking care of the low-hanging fruits I was able to
go from the ~7.5GB of the developer image to ~2.2GB, which is
already a significant improvement.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
It's a tiny tool that's extremely useful to have in the image,
as the first thing that anyone will likely want to do after
booting it is to expand the installation to cover the entire
disk.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
It currently gets dragged in by some other package included in
the developer image, but that's not the case for the minimal
image that we're about to reintroduce.
Either way, since we use the command as part of %post, we
shouldn't be relying on an indirect dependency.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
They no longer exist, so attempting to disable them results
in an error:
Error: No matching repo to modify: rawhide-modular,
updates-modular, updates-testing-modular, fedora-modular.
As a consequence, no repository is disabled, so dnf will not
work out of the box.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This pacakge is already pulled via COMPS (@anaconda-tools), but
appliance-tools doesn't know that by just looking at the KS.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>