Commit Graph

10 Commits

Author SHA1 Message Date
David Abdurachmanov a4967a4b0f
Do not mask hvc0 console
These days "console=hvc0 earlycon=sbi" is becoming popular in QEMU
development. Bring back hvc0.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-26 10:41:18 +03:00
Andrea Bolognani 6c0c1cdde5 Clean dnf history
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)
2024-04-26 10:36:22 +03:00
Andrea Bolognani 40b7729123 Improve creation of regular user
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)
2024-04-26 10:36:09 +03:00
Andrea Bolognani 4a455dc878 Only install English locale
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)
2024-04-26 10:35:13 +03:00
Andrea Bolognani f878489f61 Normalize bootloader situation
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)
2024-04-26 10:34:54 +03:00
Andrea Bolognani a59e412a4d Avoid @anaconda-tools in minimal images
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)
2024-04-26 10:34:19 +03:00
Andrea Bolognani db25fe7de6 OpenSSH is part of @core
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)
2024-04-26 10:33:41 +03:00
Andrea Bolognani eedd994158 Handle services consistently
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)
2024-04-26 10:33:21 +03:00
David Abdurachmanov 741b975526
Remove more GRUB stuff.
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-11 21:03:16 +03:00
David Abdurachmanov 76fdb7978f
Add minimal experimental image
This is for attempting to validate various configuration (e.g. sdboot +
UKI).

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-11 20:31:26 +03:00