]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
2 years agoPackages related refactors 1370/head
Daan De Meyer [Mon, 6 Mar 2023 09:32:55 +0000 (10:32 +0100)] 
Packages related refactors

- Use Sequence as the type for passing package lists around
- Add install_packages() method to DistributionInstaller
- Remove install_packages_rpm() and use invoke_dnf() directly

2 years agoarch: Use pathlib more
Daan De Meyer [Mon, 6 Mar 2023 12:04:12 +0000 (13:04 +0100)] 
arch: Use pathlib more

2 years agoMerge pull request #1369 from DaanDeMeyer/path
Daan De Meyer [Sun, 5 Mar 2023 08:35:29 +0000 (09:35 +0100)] 
Merge pull request #1369 from DaanDeMeyer/path

Path fixes

2 years agoAdd fallback paths to PATH in run_workspace_command() 1369/head
Daan De Meyer [Fri, 3 Mar 2023 20:10:01 +0000 (21:10 +0100)] 
Add fallback paths to PATH in run_workspace_command()

Some distros don't configure the appropriate default PATH for their
shell when executed non-interactively, so let's add some fallback
entries ourselves to make sure we can always find the executables we
need.

2 years agoFall back to /usr/lib/systemd/ukify if ukify is not found in PATH
Daan De Meyer [Fri, 3 Mar 2023 19:04:22 +0000 (20:04 +0100)] 
Fall back to /usr/lib/systemd/ukify if ukify is not found in PATH

2 years agoUse image default PATH in run_workspace_command()
Daan De Meyer [Fri, 3 Mar 2023 19:00:37 +0000 (20:00 +0100)] 
Use image default PATH in run_workspace_command()

2 years agoUse union operator instead of env unpacking
Daan De Meyer [Fri, 3 Mar 2023 19:22:57 +0000 (20:22 +0100)] 
Use union operator instead of env unpacking

Avoids issues when the same environment variable is specified more
than once.

2 years agodebian: create /efi mountpoint
Luca Boccassi [Mon, 27 Feb 2023 01:32:16 +0000 (01:32 +0000)] 
debian: create /efi mountpoint

Ensure ESP is mounted on /efi rather than /boot so that dpkg doesn't
attempt to install files on vFAT

2 years agoDrop quotes where not needed
Daan De Meyer [Fri, 24 Feb 2023 15:02:57 +0000 (16:02 +0100)] 
Drop quotes where not needed

2 years agoMerge pull request #1363 from DaanDeMeyer/drop-chdir
Daan De Meyer [Fri, 24 Feb 2023 14:49:49 +0000 (15:49 +0100)] 
Merge pull request #1363 from DaanDeMeyer/drop-chdir

Drop unused chdir() context manager

2 years agoRemove unused xescape() function 1363/head
Daan De Meyer [Fri, 24 Feb 2023 12:50:50 +0000 (13:50 +0100)] 
Remove unused xescape() function

2 years agoSimplify --remove-files
Daan De Meyer [Fri, 24 Feb 2023 12:49:48 +0000 (13:49 +0100)] 
Simplify --remove-files

2 years agoRemove unused parse_bytes() function
Daan De Meyer [Fri, 24 Feb 2023 12:36:47 +0000 (13:36 +0100)] 
Remove unused parse_bytes() function

2 years agoRemove unnecessary prefix variable
Daan De Meyer [Fri, 24 Feb 2023 12:33:39 +0000 (13:33 +0100)] 
Remove unnecessary prefix variable

2 years agoDrop split usr support from gen_kernel_images()
Daan De Meyer [Fri, 24 Feb 2023 12:32:39 +0000 (13:32 +0100)] 
Drop split usr support from gen_kernel_images()

2 years agoBump qemu default memory to 2G
Daan De Meyer [Wed, 15 Feb 2023 17:05:42 +0000 (18:05 +0100)] 
Bump qemu default memory to 2G

Bigger initrds require more memory so let's default to using slightly
more memory when running qemu.

2 years agoMake warn() output yellow
Daan De Meyer [Wed, 15 Feb 2023 15:39:34 +0000 (16:39 +0100)] 
Make warn() output yellow

2 years agoBump EFI partition size to 1024M
Daan De Meyer [Wed, 15 Feb 2023 15:21:15 +0000 (16:21 +0100)] 
Bump EFI partition size to 1024M

Initrds can get pretty big, so let's make sure to accomodate for
that by increasing the EFI partition size.

2 years agoStop installing dnf by default
Daan De Meyer [Wed, 15 Feb 2023 15:20:20 +0000 (16:20 +0100)] 
Stop installing dnf by default

dnf pulls in python which is a huge dependency so let's not install
it by default. Let's make sure we keep installing rpm though.

2 years agoMake make_cpio() more generic
Daan De Meyer [Wed, 15 Feb 2023 15:18:18 +0000 (16:18 +0100)] 
Make make_cpio() more generic

2 years agoSimplify should_compress_output(), default to zstd and compress cpios
Daan De Meyer [Wed, 15 Feb 2023 15:16:55 +0000 (16:16 +0100)] 
Simplify should_compress_output(), default to zstd and compress cpios

2 years agoDon't require --bootable for --qemu-headless
Daan De Meyer [Wed, 15 Feb 2023 15:10:38 +0000 (16:10 +0100)] 
Don't require --bootable for --qemu-headless

When building initrds, it's valid to want --qemu-headless without
--bootable.

2 years agoFix outdated comment
Daan De Meyer [Fri, 24 Feb 2023 11:57:33 +0000 (12:57 +0100)] 
Fix outdated comment

2 years agoUse text=True in make_cpio()
Daan De Meyer [Fri, 24 Feb 2023 11:55:03 +0000 (12:55 +0100)] 
Use text=True in make_cpio()

2 years agoDrop unused chdir() context manager
Daan De Meyer [Fri, 24 Feb 2023 11:53:53 +0000 (12:53 +0100)] 
Drop unused chdir() context manager

2 years agoSort kernel modules directories by version and use the newest
Joerg Behrmann [Thu, 23 Feb 2023 13:59:53 +0000 (14:59 +0100)] 
Sort kernel modules directories by version and use the newest

2 years agoMake some methods follow the general pattern of returning early
Daan De Meyer [Thu, 23 Feb 2023 15:14:53 +0000 (16:14 +0100)] 
Make some methods follow the general pattern of returning early

2 years agoubuntu: security repo is different from !x86
Luca Boccassi [Thu, 23 Feb 2023 13:07:10 +0000 (13:07 +0000)] 
ubuntu: security repo is different from !x86

2 years agotighten typing of env variable passed to run functions
Joerg Behrmann [Tue, 21 Feb 2023 13:34:43 +0000 (14:34 +0100)] 
tighten typing of env variable passed to run functions

2 years agoGather all boot loader related logic in install_boot_loader()
Daan De Meyer [Wed, 22 Feb 2023 14:17:17 +0000 (15:17 +0100)] 
Gather all boot loader related logic in install_boot_loader()

We drop the logic to sign unified kernel images as ukify takes care
of that for us.

2 years agoAlways run subprocesses with constrained environment
Daan De Meyer [Tue, 21 Feb 2023 11:34:57 +0000 (12:34 +0100)] 
Always run subprocesses with constrained environment

Also set LANG=C.UTF-8 if not set explicitly.

2 years agoUse complete_step() in invoke_repart()
Daan De Meyer [Mon, 20 Feb 2023 13:32:29 +0000 (14:32 +0100)] 
Use complete_step() in invoke_repart()

2 years agoMerge pull request #1351 from fbuihuu/updates-for-opensuse
Daan De Meyer [Fri, 17 Feb 2023 13:55:39 +0000 (14:55 +0100)] 
Merge pull request #1351 from fbuihuu/updates-for-opensuse

Updates for openSUSE

2 years agoopensuse: 'leap' as release name is now an alias for 'stable' 1351/head
Franck Bui [Thu, 16 Feb 2023 10:50:32 +0000 (11:50 +0100)] 
opensuse: 'leap' as release name is now an alias for 'stable'

Previously using 'leap' would have installed Leap 15.1 which doesn't make sense
since this version of Leap is obsolete and no more supported. Install the latest
stable version instead.

2 years agoopensuse: minor simplification in repo selection
Franck Bui [Thu, 16 Feb 2023 10:38:27 +0000 (11:38 +0100)] 
opensuse: minor simplification in repo selection

2 years agoopensuse: add basic support for system extensions
Franck Bui [Thu, 16 Feb 2023 08:42:09 +0000 (09:42 +0100)] 
opensuse: add basic support for system extensions

2 years agoopensuse: fix --with-docs which had no effect
Franck Bui [Thu, 16 Feb 2023 08:20:00 +0000 (09:20 +0100)] 
opensuse: fix --with-docs which had no effect

Doc installation has to be controlled via zypp.conf. However the config file
created in the rootfs wasn't considered even with `zypper --root=xxx ...`.

To force zypper to read the version in the rootfs, we must use the environment
variable 'ZYPP_CONF='.

2 years agoopensuse: implement clean_zypper_metadata()
Franck Bui [Mon, 13 Feb 2023 16:24:24 +0000 (17:24 +0100)] 
opensuse: implement clean_zypper_metadata()

2 years agoopensuse: implements remove_packages()
Franck Bui [Mon, 13 Feb 2023 16:10:36 +0000 (17:10 +0100)] 
opensuse: implements remove_packages()

2 years agoopensuse: temporarily install the local mirror in the root
Franck Bui [Wed, 15 Feb 2023 14:08:14 +0000 (15:08 +0100)] 
opensuse: temporarily install the local mirror in the root

Instead of relying on '--reposd-dir' option, temporarily install the repo from
the local mirror like the final repos in the rootfs. This way we can introduce
and rely on a very limited number of helpers that manipulate the repositories
inside the rootfs, which should make the code easier to follow.

2 years agoFix cache directory creation when no cache dir is configured
Daan De Meyer [Thu, 16 Feb 2023 15:16:17 +0000 (16:16 +0100)] 
Fix cache directory creation when no cache dir is configured

2 years agoMerge pull request #1352 from DaanDeMeyer/tmpdir
Jörg Behrmann [Thu, 16 Feb 2023 15:09:49 +0000 (16:09 +0100)] 
Merge pull request #1352 from DaanDeMeyer/tmpdir

Set TMPDIR when running repart

2 years agoSimplify workspace setup 1352/head
Daan De Meyer [Thu, 16 Feb 2023 12:38:56 +0000 (13:38 +0100)] 
Simplify workspace setup

With the move to bubblewrap we don't run into issues anymore when
the workspace is located in the source directory so let's simplify
the workspace setup.

2 years agorename is_rpm_distribution() into is_dnf_distribution()
Franck Bui [Fri, 10 Feb 2023 16:21:18 +0000 (17:21 +0100)] 
rename is_rpm_distribution() into is_dnf_distribution()

2 years agoSet TMPDIR when running repart
Daan De Meyer [Thu, 16 Feb 2023 12:28:07 +0000 (13:28 +0100)] 
Set TMPDIR when running repart

Otherwise, repart will copy the root directory to /var/tmp which
can be slow on COW filesystems if /var/tmp is on a different
partition.

2 years agoMerge pull request #1349 from DaanDeMeyer/centos-fixes
Daan De Meyer [Wed, 15 Feb 2023 10:18:42 +0000 (11:18 +0100)] 
Merge pull request #1349 from DaanDeMeyer/centos-fixes

Centos fixes

2 years agocentos: Mount root partition rw by default on CentOS Stream 8 1349/head
Daan De Meyer [Tue, 14 Feb 2023 21:13:43 +0000 (22:13 +0100)] 
centos: Mount root partition rw by default on CentOS Stream 8

2 years agoMove kernel command line handling into install_unified_kernel()
Daan De Meyer [Tue, 14 Feb 2023 21:10:06 +0000 (22:10 +0100)] 
Move kernel command line handling into install_unified_kernel()

2 years agoHandle older versions of kernel-install
Daan De Meyer [Tue, 14 Feb 2023 20:47:01 +0000 (21:47 +0100)] 
Handle older versions of kernel-install

Older versions of kernel-install unconditionally write the initrd
to /boot/<machine-id>/<kver>. Let's detect that and move it to the
correct location.

2 years agoMake sure we NUL terminate the cmdline section in the UKI
Daan De Meyer [Tue, 14 Feb 2023 20:44:42 +0000 (21:44 +0100)] 
Make sure we NUL terminate the cmdline section in the UKI

Older versions of systemd-stub expect the cmdline section to be
NUL terminated so let's make sure that it is.

2 years agoSkip selinux relabeling when building for cache or build script
Daan De Meyer [Tue, 14 Feb 2023 18:14:36 +0000 (19:14 +0100)] 
Skip selinux relabeling when building for cache or build script

2 years agoAllow RPM to return total file sizes larger than 4GB
Nils Hanke [Mon, 13 Feb 2023 17:59:55 +0000 (18:59 +0100)] 
Allow RPM to return total file sizes larger than 4GB

When an RPM has a total content size over 4GB, the --qf parameter
needs to use LONGSIZE instead of SIZE to display the total package
content file size, likely to keep compatibility with code
expecting 32 bit friendly values.

Otherwise, if a package is larger than 4GB, RPM returns (none).
Since this is later given as input to Python's int(),
it will throw an exception due to (none) not being a number.

2 years agoMerge pull request #1347 from DaanDeMeyer/fix-incremental
Daan De Meyer [Tue, 14 Feb 2023 15:30:05 +0000 (16:30 +0100)] 
Merge pull request #1347 from DaanDeMeyer/fix-incremental

Fix need_cache_trees()

2 years agoAdd --verbose to kernel-install if --debug is specified 1347/head
Daan De Meyer [Tue, 14 Feb 2023 15:01:51 +0000 (16:01 +0100)] 
Add --verbose to kernel-install if --debug is specified

2 years agoFix need_cache_trees()
Daan De Meyer [Tue, 14 Feb 2023 14:31:30 +0000 (15:31 +0100)] 
Fix need_cache_trees()

2 years agoRelabel image when selinux policy is installed
Daan De Meyer [Tue, 14 Feb 2023 12:01:17 +0000 (13:01 +0100)] 
Relabel image when selinux policy is installed

If an selinux policy is installed in the image, let's relabel it
automatically.

2 years agoSimplify kernel image and initrd handling
Daan De Meyer [Thu, 9 Feb 2023 11:53:32 +0000 (12:53 +0100)] 
Simplify kernel image and initrd handling

- Let's stop writing files in /etc in favor of passing the
information via other ways
- Let's stop defaulting to "bls" layout which is intended
for type 1 images, we only use UKIs so we don't need the
"bls" layout
- kernel-install now defaults to the "other" layout, which
means it won't create the entry directory in /boot anymore.
We update the initrd find logic to take this into account
- Remove --machine-id as it was only really there for testing
the config parsing which we now deal with by not storing the
machine ID at all

2 years agoDrop TODO
Daan De Meyer [Fri, 10 Feb 2023 11:47:47 +0000 (12:47 +0100)] 
Drop TODO

We don't keep it up to date anyway, so let's drop it.

2 years agoSet timezone credential to current timezone by default
Daan De Meyer [Fri, 10 Feb 2023 09:40:03 +0000 (10:40 +0100)] 
Set timezone credential to current timezone by default

We don't configure a default timezone in the images, so let's set
a timezone credential by default to the current timezone to avoid
a prompt during first boot.

2 years agorun: Use is_symlink() instead of exists()
Daan De Meyer [Thu, 9 Feb 2023 21:51:23 +0000 (22:51 +0100)] 
run: Use is_symlink() instead of exists()

exists() will resolve the symlink in the host if it's absolute,
let's use is_symlink() which checks if the symlink exists.

2 years agocentos: Do not try to resolve symlink
Daan De Meyer [Thu, 9 Feb 2023 21:11:53 +0000 (22:11 +0100)] 
centos: Do not try to resolve symlink

We don't have chase_symlinks(), resolving the symlink actually
resolves it on the host instead of in the image. Instead, let's
just unconditionally remove the symlink.

2 years agocentos: Log when we remove the dangling symlink
Daan De Meyer [Thu, 9 Feb 2023 18:42:09 +0000 (19:42 +0100)] 
centos: Log when we remove the dangling symlink

2 years agoFix cache directory
Daan De Meyer [Thu, 9 Feb 2023 17:03:03 +0000 (18:03 +0100)] 
Fix cache directory

Make sure to use state.cache where applicable. Also get rid of
setup_package_cache() since it comes down to a one liner

2 years agocentos: Remove dangling syslog.service symlink
Daan De Meyer [Thu, 9 Feb 2023 16:47:20 +0000 (17:47 +0100)] 
centos: Remove dangling syslog.service symlink

Dangling symlinks trip up systemctl preset-all so let's remove this
one that's generated by the systemd spec in centos stream 8.

2 years agoUse shutil.move() to move /etc/resolv.conf symlink
Daan De Meyer [Thu, 9 Feb 2023 16:16:47 +0000 (17:16 +0100)] 
Use shutil.move() to move /etc/resolv.conf symlink

2 years agoMerge pull request #1334 from DaanDeMeyer/fix-network
Daan De Meyer [Thu, 9 Feb 2023 14:17:10 +0000 (15:17 +0100)] 
Merge pull request #1334 from DaanDeMeyer/fix-network

Fix bind mounting resolv.conf when it's a symlink

2 years agoDrop --include-directory
Daan De Meyer [Thu, 9 Feb 2023 09:01:07 +0000 (10:01 +0100)] 
Drop --include-directory

Let's get rid of one more source of mounts. --include-dir can be replaced
by using --incremental and reading includes from the cached build image
tree. In the future, once build images become regular images, users can
read includes by simply using --directory output and reading includes
from the regular image output tree.

2 years agoFix bind mounting resolv.conf when it's a symlink 1334/head
Daan De Meyer [Thu, 9 Feb 2023 14:03:36 +0000 (15:03 +0100)] 
Fix bind mounting resolv.conf when it's a symlink

bwrap doesn't support mounting over symlinks, so let's take that
into account.

2 years agoFix path expansion
Daan De Meyer [Thu, 9 Feb 2023 14:03:23 +0000 (15:03 +0100)] 
Fix path expansion

2 years agoEnable unprivileged image builds
Daan De Meyer [Sun, 22 Jan 2023 17:29:49 +0000 (18:29 +0100)] 
Enable unprivileged image builds

To enable this, when doing a build, we unshare a user namespace
with it's own private set of uids/gids obtained using newuidmap
and newgidmap. We also map the current user to the last UID/GID
in the UID/GID range from /etc/subuid and /etc/subgid. Together
with unsharing the mount namespace, this allows us to do
unprivileged bind and overlay mounts.

Next, we replace all usages of systemd-nspawn during the image build
with bubblewrap. systemd-nspawn cannot run as an unprivileged user
yet so we use bubblewrap which can. bubblewrap can also be used to
setup a chroot environment with API VFS filesystems so we make use
of that to setup chroot environments and remove all our homegrown
logic for it. This allows us to significantly reduce the amount of
mounts we do in mkosi itself.

To further reduce the amount of mounts, we modify the invocations
of all package managers to specify the cache directory via the
relevant option instead of mounting the cache directory into the
chroot. For apt, to accomplish this, we switch from using
DPkg::Chroot-Directory to setting the "--root" option for each
invocation of dpkg so that dpkg can access files outside of the
chroot.

Finally, we remove some options which become obsolete with this
commit, --idmap, --chown and --nspawn-keep-unit.

We also remove --source-file-transfer, --source-file-transfer-final
and the corresponding symlink options. Instead, we default to mounting
source files into the build tree. In the future, we'll add virtiofsd
support to allow accessing source files in qemu VMs.

We also move stuff around and create a few new files to store
helpers to avoid circular imports. There's also a little bit of
refactoring and cleanup all around.

2 years agoRun preset-all on the final image
Daan De Meyer [Tue, 7 Feb 2023 13:45:02 +0000 (14:45 +0100)] 
Run preset-all on the final image

Let's run preset-all on the finalized image so that read-only
images (e.g. initrds) have the preset settings configured in the
image itself at creation time.

2 years agoFix --checksum true
Manuel Mausz [Thu, 2 Feb 2023 12:40:56 +0000 (12:40 +0000)] 
Fix --checksum true

File should be opened for reading

2 years agoMerge pull request #1328 from DaanDeMeyer/stuff
Daan De Meyer [Wed, 1 Feb 2023 10:32:41 +0000 (11:32 +0100)] 
Merge pull request #1328 from DaanDeMeyer/stuff

stuff

2 years agoDrop --all and --all-directory 1328/head
Daan De Meyer [Tue, 31 Jan 2023 18:56:57 +0000 (19:56 +0100)] 
Drop --all and --all-directory

Job control should be delegated to a build system so let's drop this
from mkosi.

2 years agotests: Drop config parser tests
Daan De Meyer [Tue, 31 Jan 2023 18:56:18 +0000 (19:56 +0100)] 
tests: Drop config parser tests

These have never caught anything useful and are understood by nobody,
let's just drop them.

2 years agoRemove btrfs subvolume deletion logic
Daan De Meyer [Tue, 31 Jan 2023 18:37:28 +0000 (19:37 +0100)] 
Remove btrfs subvolume deletion logic

Deleting btrfs subvolumes requires root. Given that we'll be moving
to primarily unprivileged execution soon, let's drop the logic for
deleting btrfs subvolumes. They're still deleted if the corresponding
directory is removed, it's just slightly slower.

2 years agoRemove leftover references to old output formats
Daan De Meyer [Tue, 31 Jan 2023 18:24:39 +0000 (19:24 +0100)] 
Remove leftover references to old output formats

2 years agoCreate secure boot auto enrollment files
Jan Janssen [Tue, 31 Jan 2023 17:08:21 +0000 (18:08 +0100)] 
Create secure boot auto enrollment files

2 years agoqemu: Always use usermode networking
Daan De Meyer [Mon, 30 Jan 2023 15:34:04 +0000 (16:34 +0100)] 
qemu: Always use usermode networking

With the upcoming support for unprivileged image builds, we can't
use getuid() to check for root anymore as we might be in a user
namespace. Instead of trying to fix the detection, let's just
always use usermode networking when running in qemu.

2 years agocentos: Install epel-release in both build and final images
Daan De Meyer [Sun, 29 Jan 2023 14:29:40 +0000 (15:29 +0100)] 
centos: Install epel-release in both build and final images

This allows mkosi.prepare scripts to install extra dependencies
from epel as well.

2 years agocentos: Refactor epel handling
Daan De Meyer [Fri, 27 Jan 2023 11:39:37 +0000 (12:39 +0100)] 
centos: Refactor epel handling

- Use URLs from CentOS itself and metalinks everywhere.
- Add epel-testing, disabled by default
- Move everything into a common function

2 years agoRework roothash handling
Daan De Meyer [Fri, 27 Jan 2023 10:22:02 +0000 (11:22 +0100)] 
Rework roothash handling

First, we clean up the leftover remnants of our qemu direct linux
boot support from install_unified_kernel(). Then we simplify passing
around data from invoke_repart() to install_unified_kernel() by only
passing around a single argument, the roothash/usrhash argument.
Finally, now that repart has "roothash" set on every verity sibling
partition, we can just read "roothash" off of any of them. We also
change the logic so that if we find a roothash, it always has
precedence over a usrhash.

2 years agoNever export bytecode
Daan De Meyer [Fri, 27 Jan 2023 09:17:21 +0000 (10:17 +0100)] 
Never export bytecode

2 years agotighten types on functions that have no or very few str callers
Joerg Behrmann [Wed, 25 Jan 2023 16:08:51 +0000 (17:08 +0100)] 
tighten types on functions that have no or very few str callers

2 years agoRework copying
Daan De Meyer [Wed, 25 Jan 2023 14:21:19 +0000 (15:21 +0100)] 
Rework copying

Let's just delegate to `cp` and get rid of a ton of cruft and speed
things up at the same time.

2 years agocentos: Use ext4 as the default filesystem instead of xfs
Daan De Meyer [Tue, 24 Jan 2023 11:04:51 +0000 (12:04 +0100)] 
centos: Use ext4 as the default filesystem instead of xfs

2 years agoRemove leftover reference to "RepositoryDirectory"
Daan De Meyer [Tue, 24 Jan 2023 10:57:41 +0000 (11:57 +0100)] 
Remove leftover reference to "RepositoryDirectory"

2 years agoUse plural Credentials= in config files
Daan De Meyer [Tue, 24 Jan 2023 10:56:58 +0000 (11:56 +0100)] 
Use plural Credentials= in config files

2 years agoMake sure args_find_path() works with as_list
Daan De Meyer [Tue, 24 Jan 2023 10:55:07 +0000 (11:55 +0100)] 
Make sure args_find_path() works with as_list

The default when using list arguments is [], so let's modify the
check to account for this.

2 years agoAdd missing check=False
Daan De Meyer [Mon, 23 Jan 2023 14:10:09 +0000 (15:10 +0100)] 
Add missing check=False

2 years agoRemove default kernel command line arguments
Daan De Meyer [Fri, 20 Jan 2023 09:15:56 +0000 (10:15 +0100)] 
Remove default kernel command line arguments

The defaults are rather intrusive so let's not enable them by default
but leave them for users to configure manually.

2 years agocentos: Default to glibc-minimal-langpack on CentOS Stream 8
Daan De Meyer [Thu, 19 Jan 2023 14:29:57 +0000 (15:29 +0100)] 
centos: Default to glibc-minimal-langpack on CentOS Stream 8

2 years agocentos: Remove "-stream" from releases
Daan De Meyer [Tue, 17 Jan 2023 19:41:35 +0000 (20:41 +0100)] 
centos: Remove "-stream" from releases

We don't support non centos stream releases anymore, so let's remove
the "-stream" suffix from centos releases.

2 years agoMerge pull request #1309 from DaanDeMeyer/extras
Daan De Meyer [Tue, 17 Jan 2023 13:58:54 +0000 (14:58 +0100)] 
Merge pull request #1309 from DaanDeMeyer/extras

centos: Add extras repo on centos stream 9

2 years agoAdd check_config_file=False to all dnf repo definitions 1309/head
Daan De Meyer [Tue, 17 Jan 2023 12:48:36 +0000 (13:48 +0100)] 
Add check_config_file=False to all dnf repo definitions

By default, dnf will always refresh repository metadata if the timestamp
of the config file has changed. Since we always rewrite the config file,
this will always be the case, so let's make sure we don't refresh the
metadata every time.

2 years agocentos: Add extras repo on centos stream 9
Daan De Meyer [Tue, 17 Jan 2023 12:23:52 +0000 (13:23 +0100)] 
centos: Add extras repo on centos stream 9

We already add the extras repository on centos stream 8, let's do
the same on centos stream 9.

2 years agoMerge pull request #1308 from DaanDeMeyer/centos-modern
Daan De Meyer [Mon, 16 Jan 2023 15:39:19 +0000 (16:39 +0100)] 
Merge pull request #1308 from DaanDeMeyer/centos-modern

Centos fixes

2 years agocentos: Modernize repo URLs 1308/head
Daan De Meyer [Mon, 16 Jan 2023 12:45:55 +0000 (13:45 +0100)] 
centos: Modernize repo URLs

Let's use DNF variables where we can. We also modify releasever to
be only the release version without "-stream" and use $stream when
we need the releasever with "-stream". This matches the upstream
usages of these variables.

2 years agocentos: Use lowercase repo identifiers everywhere
Daan De Meyer [Mon, 16 Jan 2023 12:23:33 +0000 (13:23 +0100)] 
centos: Use lowercase repo identifiers everywhere

2 years agoFix man page to mention apt requirement on host
Daan De Meyer [Mon, 16 Jan 2023 09:38:11 +0000 (10:38 +0100)] 
Fix man page to mention apt requirement on host