Commit Graph

28 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 66d0e4d3ed
Try to reduce even more
Minimal and Minimal Experimental works, but Developer still fails.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-13 13:25:35 +03:00
David Abdurachmanov 2f15299f5d
Try to keep old size, but reduce packages
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-13 08:59:07 +03:00
David Abdurachmanov f16599f583
Add more space
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>
2024-04-13 08:55:04 +03:00
David Abdurachmanov e3e38917c5
Make it smaller again
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-13 07:17:54 +03:00
David Abdurachmanov 65fc1bd4b3
Reduce even more
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 21:23:20 +03:00
David Abdurachmanov d6ebb1e738
Go even smaller
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 19:15:57 +03:00
David Abdurachmanov f464a1ae9a
Reduce more
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 17:17:55 +03:00
David Abdurachmanov 78a1865d62
Lower disk size
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 17:10:11 +03:00
David Abdurachmanov 94194447ee
Increase disk size
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>
2024-04-12 15:09:35 +03:00
David Abdurachmanov 621db528f1
Remove deprecated package.
This is no longer available with podman 5.0.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 14:45:05 +03:00
David Abdurachmanov 3822bf1ca2
Add Kiwi NG
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>
2024-04-12 13:56:07 +03:00
David Abdurachmanov 98962c7167
Add more EFI/EDK2/UKI related tools
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-04-12 13:54:28 +03:00
Andrea Bolognani 5d40792dd6 Remove trailing whitespace
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-04-09 19:29:31 +02:00
Andrea Bolognani e48413ad03 Install growpart
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>
2024-04-09 19:29:31 +02:00
Andrea Bolognani 830392708b Install grub2 modules
The bootloader is fairly useless on its own.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-04-09 19:29:31 +02:00
Andrea Bolognani 85e99a468d Install passwd explicitly
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>
2024-04-09 19:28:55 +02:00
Andrea Bolognani 18b4bc146f Don't try to disable modular repositories
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>
2024-04-09 19:04:28 +02:00
David Abdurachmanov 20c827217b
Do not install valgrind and s390utils
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-23 10:25:43 +02:00
David Abdurachmanov 9df3d9d541
Remove rpmautospec-rpm-macros
It was added to redhat-rpm-config 264.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-22 19:18:02 +02:00
David Abdurachmanov b20a67c31d
Add F40 KS
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-22 13:51:35 +02:00