]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
18 months agoAdd FAQ entry on how to add regular users to image 2322/head
Daan De Meyer [Wed, 24 Jan 2024 07:52:55 +0000 (08:52 +0100)] 
Add FAQ entry on how to add regular users to image

Fixes #2320

18 months agoFix FAQ indentation
Daan De Meyer [Wed, 24 Jan 2024 09:05:47 +0000 (10:05 +0100)] 
Fix FAQ indentation

18 months agoFix MinimumVersion= check
Daan De Meyer [Tue, 23 Jan 2024 22:49:16 +0000 (23:49 +0100)] 
Fix MinimumVersion= check

18 months agoAdd markdown contents for "A re-introduction to mkosi" blog post
Daan De Meyer [Wed, 10 Jan 2024 10:15:07 +0000 (11:15 +0100)] 
Add markdown contents for "A re-introduction to mkosi" blog post

Let's keep this in the repo so it can be reviewed and so we can update
it later if needed.

18 months agoman: `--debug-shell=` -> `--debug-shell`
Winterhuman [Tue, 23 Jan 2024 12:51:55 +0000 (12:51 +0000)] 
man: `--debug-shell=` -> `--debug-shell`

`--debug-shell` refuses to take an argument, so the equal sign is misleading (aka. `--debug-shell=yes` errors out), so let's remove it from the `man` page.

18 months agoMerge pull request #2316 from DaanDeMeyer/ssh
Daan De Meyer [Tue, 23 Jan 2024 12:32:40 +0000 (13:32 +0100)] 
Merge pull request #2316 from DaanDeMeyer/ssh

Don't use a tools tree for verbs that don't need a build

18 months agoOnly use tools trees for verbs that need a build 2316/head
Daan De Meyer [Mon, 22 Jan 2024 19:51:00 +0000 (20:51 +0100)] 
Only use tools trees for verbs that need a build

Currently we try to use a tools tree that isn't there for verbs
that don't need a build. Let's instead opt to not use one altogether
since building an entire image just to run ssh is kind of overkill.

18 months agoDon't require a build for journalctl and coredumctl
Daan De Meyer [Mon, 22 Jan 2024 19:50:28 +0000 (20:50 +0100)] 
Don't require a build for journalctl and coredumctl

These only make sense after we've booted the image, so requiring a
build is kind of backwards.

18 months agoMerge pull request #2313 from DaanDeMeyer/resources
Daan De Meyer [Tue, 23 Jan 2024 10:49:45 +0000 (11:49 +0100)] 
Merge pull request #2313 from DaanDeMeyer/resources

Allow including builtin configs

18 months agoMerge pull request #2317 from keszybz/pythonesque-tweaks
Daan De Meyer [Tue, 23 Jan 2024 10:25:44 +0000 (11:25 +0100)] 
Merge pull request #2317 from keszybz/pythonesque-tweaks

Minor cleanups to code

18 months agokernel-install: Use builtin mkosi-initrd configuration 2313/head
Daan De Meyer [Mon, 22 Jan 2024 14:21:01 +0000 (15:21 +0100)] 
kernel-install: Use builtin mkosi-initrd configuration

18 months agoAllow including builtin configs
Daan De Meyer [Mon, 22 Jan 2024 14:17:01 +0000 (15:17 +0100)] 
Allow including builtin configs

Let's make it possible to include builtin configurations using
e.g. Include=mkosi-initrd. This allows building the default initrd
or default tools tree independently whereas currently these can only
be built as part of another image.

18 months agoRename inner parse_config() to parse_config_one()
Daan De Meyer [Mon, 22 Jan 2024 13:58:41 +0000 (14:58 +0100)] 
Rename inner parse_config() to parse_config_one()

Let's not use the same function name for the inner and outer function.

18 months agoExtract mkosi.resources once
Daan De Meyer [Mon, 22 Jan 2024 13:23:16 +0000 (14:23 +0100)] 
Extract mkosi.resources once

Instead of extracting individual files and directories when we need
them, let's extract the resources once and pass the extracted path
around so that we don't have to deal with context managers every time
we want to use resources.

18 months agoExtract full resources instead of specific paths
Daan De Meyer [Mon, 22 Jan 2024 12:57:35 +0000 (13:57 +0100)] 
Extract full resources instead of specific paths

18 months agoDrop unnecessary parentheses around conditionals 2317/head
Zbigniew Jędrzejewski-Szmek [Tue, 23 Jan 2024 09:39:48 +0000 (10:39 +0100)] 
Drop unnecessary parentheses around conditionals

18 months agoDrop unneeded inner function
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jan 2024 09:45:32 +0000 (10:45 +0100)] 
Drop unneeded inner function

The result should be exactly the same.

One of the loops was using inverted logic (continue-if-not-else-yield instead
of yield-if), so invert that for consistency.

18 months agosandbox: Deal correctly with unmerged-usr
Daan De Meyer [Mon, 22 Jan 2024 15:05:07 +0000 (16:05 +0100)] 
sandbox: Deal correctly with unmerged-usr

If /bin and such are directories instead of symlinks, bind mount
them in to the sandbox.

Fixes #2314

18 months agoRelease 20.2 v20.2
Luca Boccassi [Mon, 22 Jan 2024 12:17:22 +0000 (12:17 +0000)] 
Release 20.2

18 months agoUpdate NEWS
Daan De Meyer [Mon, 22 Jan 2024 11:43:41 +0000 (12:43 +0100)] 
Update NEWS

18 months agoUse an r-string for regexp
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jan 2024 09:41:41 +0000 (10:41 +0100)] 
Use an r-string for regexp

I think we should do so everywhere to avoid double escaping,
even if here the string is the same length in both cases.

19 months agoImplement RepositoryKeyCheck= for apt
Daan De Meyer [Fri, 19 Jan 2024 11:21:47 +0000 (12:21 +0100)] 
Implement RepositoryKeyCheck= for apt

19 months agoUpdate NEWS
Daan De Meyer [Fri, 19 Jan 2024 08:39:51 +0000 (09:39 +0100)] 
Update NEWS

19 months agoHandle builds that run from directories with less than two parent dirs
Daan De Meyer [Thu, 18 Jan 2024 19:40:20 +0000 (20:40 +0100)] 
Handle builds that run from directories with less than two parent dirs

Fixes #2302

19 months agoMerge pull request #2301 from DaanDeMeyer/depmod
Jörg Behrmann [Thu, 18 Jan 2024 11:17:29 +0000 (12:17 +0100)] 
Merge pull request #2301 from DaanDeMeyer/depmod

Improve check for whether we have to rerun depmod

19 months agoDon't mount /srv and /mnt read-only
Daan De Meyer [Thu, 18 Jan 2024 08:56:45 +0000 (09:56 +0100)] 
Don't mount /srv and /mnt read-only

It seems there are use cases where users expect to write their output
to a directory in /srv or /mnt so let's make that writable. This should
be safe as we set up a custom sandbox now so none of the tools we run
will have access to /srv and /mnt in the first place.

19 months agoImprove check for whether we have to rerun depmod 2301/head
Daan De Meyer [Thu, 18 Jan 2024 09:26:10 +0000 (10:26 +0100)] 
Improve check for whether we have to rerun depmod

Let's check if any extra modules were dropped in by users and rerun
depmod in that case.

19 months agoDon't preserve timestamps when copying skeleton/extra trees
Daan De Meyer [Thu, 18 Jan 2024 09:24:45 +0000 (10:24 +0100)] 
Don't preserve timestamps when copying skeleton/extra trees

If timestamps should be preserved, a tar archive should be used.
Timestamps in directories are very likely to be arbitrary and there's
no point in preserving them. This doesn't impact reproducible builds
as we have SourceDateEpoch= for that.

19 months agoMerge pull request #2298 from DaanDeMeyer/env
Daan De Meyer [Wed, 17 Jan 2024 21:40:32 +0000 (22:40 +0100)] 
Merge pull request #2298 from DaanDeMeyer/env

Introduce config_make_dict_parser()

19 months agoFix summary indentation 2298/head
Daan De Meyer [Wed, 17 Jan 2024 14:34:12 +0000 (15:34 +0100)] 
Fix summary indentation

19 months agoIntroduce config_make_dict_parser()
Daan De Meyer [Wed, 17 Jan 2024 14:05:20 +0000 (15:05 +0100)] 
Introduce config_make_dict_parser()

19 months agoFix --mirror for Fedora (again)
Daan De Meyer [Wed, 17 Jan 2024 13:03:15 +0000 (14:03 +0100)] 
Fix --mirror for Fedora (again)

19 months agoMerge pull request #2296 from DaanDeMeyer/passwd
Daan De Meyer [Wed, 17 Jan 2024 11:28:46 +0000 (12:28 +0100)] 
Merge pull request #2296 from DaanDeMeyer/passwd

Hash root password when a plaintext one is given

19 months agoStop using --best when not necessary 2296/head
Daan De Meyer [Wed, 17 Jan 2024 10:27:20 +0000 (11:27 +0100)] 
Stop using --best when not necessary

19 months agoRemove unnecessary quotes
Daan De Meyer [Wed, 17 Jan 2024 10:26:11 +0000 (11:26 +0100)] 
Remove unnecessary quotes

19 months agoFix SRPM path in rpm scripts
Daan De Meyer [Wed, 17 Jan 2024 10:18:52 +0000 (11:18 +0100)] 
Fix SRPM path in rpm scripts

19 months agoHash root password when a plaintext one is given
Daan De Meyer [Wed, 17 Jan 2024 10:18:39 +0000 (11:18 +0100)] 
Hash root password when a plaintext one is given

19 months agoRevert "Don't include root password in /usr/lib/credstore"
Daan De Meyer [Wed, 17 Jan 2024 09:34:08 +0000 (10:34 +0100)] 
Revert "Don't include root password in /usr/lib/credstore"

If /etc/shadow is included in the image this is just as safe/unsafe
as including the hashed root password in /usr/lib/credstore. We'll
deal with including the plaintext root password in the next commit.

This reverts commit 1e054b4f3d75552b23299d20079f5f6ee3b7853a.

19 months agoMerge pull request #2294 from DaanDeMeyer/topdir
Jörg Behrmann [Wed, 17 Jan 2024 09:27:22 +0000 (10:27 +0100)] 
Merge pull request #2294 from DaanDeMeyer/topdir

Always set rpm _topdir to /var/tmp

19 months agoMerge pull request #2295 from DaanDeMeyer/news
Jörg Behrmann [Wed, 17 Jan 2024 09:23:57 +0000 (10:23 +0100)] 
Merge pull request #2295 from DaanDeMeyer/news

Update NEWS

19 months agoAdd link to constellation mkosi blog post 2295/head
Daan De Meyer [Tue, 16 Jan 2024 22:39:09 +0000 (23:39 +0100)] 
Add link to constellation mkosi blog post

19 months agoAdd link to "Building USIs with mkosi" blog post
Daan De Meyer [Tue, 16 Jan 2024 22:32:26 +0000 (23:32 +0100)] 
Add link to "Building USIs with mkosi" blog post

19 months agoUpdate NEWS
Daan De Meyer [Tue, 16 Jan 2024 21:26:00 +0000 (22:26 +0100)] 
Update NEWS

19 months agoClarify that --build-in-place sets _builddir to the CWD 2294/head
Daan De Meyer [Tue, 16 Jan 2024 20:28:41 +0000 (21:28 +0100)] 
Clarify that --build-in-place sets _builddir to the CWD

This isn't exactly obvious, so let's mention that --build-in-place
configures _builddir to the current working directory which explains
why we need to change directory to the upstream sources before
invoking rpmbuild.

19 months agoAlways set rpm _topdir to /var/tmp
Daan De Meyer [Tue, 16 Jan 2024 20:20:38 +0000 (21:20 +0100)] 
Always set rpm _topdir to /var/tmp

_topdir is rpm's working directory. Set it /var/tmp so we don't pollute
the image or source directories we're building from with rpmbuild
artifacts.

19 months agoUse $PACKAGEDIR when building mkosi rpm
Daan De Meyer [Tue, 16 Jan 2024 15:57:47 +0000 (16:57 +0100)] 
Use $PACKAGEDIR when building mkosi rpm

19 months agoCache depmod again
Daan De Meyer [Tue, 16 Jan 2024 15:39:05 +0000 (16:39 +0100)] 
Cache depmod again

Let's run depmod before we cache our images so that we can skip it
when doing incremental builds for kernels installed with the package
manager. depmod is noticeably slow so this speeds up kernel builds a
bit.

19 months agoFix shim signing bug
Daan De Meyer [Tue, 16 Jan 2024 13:37:51 +0000 (14:37 +0100)] 
Fix shim signing bug

sign_efi_binary() expects the full output path.

19 months agoMerge pull request #2291 from DaanDeMeyer/stuff
Jörg Behrmann [Tue, 16 Jan 2024 14:57:23 +0000 (15:57 +0100)] 
Merge pull request #2291 from DaanDeMeyer/stuff

kernel-install: Build microcode initrd

19 months agokernel-install: Build microcode initrd 2291/head
Daan De Meyer [Tue, 16 Jan 2024 13:49:20 +0000 (14:49 +0100)] 
kernel-install: Build microcode initrd

Let's make sure we build a microcode initrd as well in the
kernel-install plugin. It's a bit too complicated to reuse
the build_microcode_initrd() function we have already due to
sandboxing so we opt to duplicate it instead.

19 months agoMake archive.py independent of Context
Daan De Meyer [Tue, 16 Jan 2024 13:21:52 +0000 (14:21 +0100)] 
Make archive.py independent of Context

Let's make these functions slightly more generic by passing in a
tools directory and a sandbox instead of the full Context object.

19 months agoMake sure we open Packages output location in binary mode
Daan De Meyer [Tue, 16 Jan 2024 13:59:40 +0000 (14:59 +0100)] 
Make sure we open Packages output location in binary mode

19 months agoUse stdin/stdout for cpio/tar
Daan De Meyer [Tue, 16 Jan 2024 12:54:30 +0000 (13:54 +0100)] 
Use stdin/stdout for cpio/tar

Let's reduce the amount of stuff we have to mount in the sandbox
by making use of stdin/stdout when invoking cpio/tar.

19 months agoMerge pull request #2289 from DaanDeMeyer/news
Daan De Meyer [Tue, 16 Jan 2024 12:31:01 +0000 (13:31 +0100)] 
Merge pull request #2289 from DaanDeMeyer/news

Update NEWS

19 months agoDon't include root password in /usr/lib/credstore 2289/head
Daan De Meyer [Tue, 16 Jan 2024 12:04:58 +0000 (13:04 +0100)] 
Don't include root password in /usr/lib/credstore

19 months agoUpdate NEWS
Daan De Meyer [Tue, 16 Jan 2024 12:01:37 +0000 (13:01 +0100)] 
Update NEWS

19 months agoMerge pull request #2287 from DaanDeMeyer/stuff
Daan De Meyer [Tue, 16 Jan 2024 12:00:50 +0000 (13:00 +0100)] 
Merge pull request #2287 from DaanDeMeyer/stuff

Package manager improvements

19 months agoAdd PackageDirectories= 2287/head
Daan De Meyer [Mon, 15 Jan 2024 21:24:08 +0000 (22:24 +0100)] 
Add PackageDirectories=

Let's make it possible to serve local packages as a local repository
so that users don't have to put local paths in their Packages= setting.
We'll also allow adding more packages to this local repository in the
build script so that these can be installed in the initrd when we build
it or in a postinst or finalize script.

19 months agoMount package manager caches to their canonical locations
Daan De Meyer [Mon, 15 Jan 2024 20:57:35 +0000 (21:57 +0100)] 
Mount package manager caches to their canonical locations

Let's reduce the amount of configuration by mounting package
manager caches to their canonical locations.

19 months agoReplace flatten() with format string
Daan De Meyer [Mon, 15 Jan 2024 20:31:34 +0000 (21:31 +0100)] 
Replace flatten() with format string

19 months agoUse context.pkgmngr in one more place
Daan De Meyer [Mon, 15 Jan 2024 20:30:58 +0000 (21:30 +0100)] 
Use context.pkgmngr in one more place

19 months agoMount package manager cache directories when running scripts
Daan De Meyer [Mon, 15 Jan 2024 20:29:10 +0000 (21:29 +0100)] 
Mount package manager cache directories when running scripts

When running package managers in host scripts we want the cache
to be available as well;

19 months agoPut --mirror in cache manifest
Daan De Meyer [Mon, 15 Jan 2024 20:04:55 +0000 (21:04 +0100)] 
Put --mirror in cache manifest

19 months agoFix --mirror for CentOS and Fedora
Daan De Meyer [Mon, 15 Jan 2024 19:59:03 +0000 (20:59 +0100)] 
Fix --mirror for CentOS and Fedora

Let's unify the interface for --mirror and only require users to
specify a url and add the entire path ourselves in mkosi. This is
required to use EPEL repositories with --mirror= as the epel
repositories are mirrored under <url>/fedora/epel whereas the CentOS
Stream repositories are under <url>/centos-stream

19 months agoci: Enable Arch Linux tools tree CI again
Daan De Meyer [Tue, 16 Jan 2024 09:33:54 +0000 (10:33 +0100)] 
ci: Enable Arch Linux tools tree CI again

The required qemu fix was backported to the qemu package.

19 months agoGenerate more strict regexes from loaded modules
Daan De Meyer [Tue, 16 Jan 2024 10:11:54 +0000 (11:11 +0100)] 
Generate more strict regexes from loaded modules

Let's only match actual modules ending in .ko.

19 months agofedora: Don't download filelists
Daan De Meyer [Mon, 15 Jan 2024 13:16:30 +0000 (14:16 +0100)] 
fedora: Don't download filelists

Fixes a bug introduced in c1bef56eafb6809a91816c3c17e57050c1724fc4.

19 months agoMerge pull request #2285 from DaanDeMeyer/tmpfiles
Jörg Behrmann [Mon, 15 Jan 2024 10:59:14 +0000 (11:59 +0100)] 
Merge pull request #2285 from DaanDeMeyer/tmpfiles

Run systemd-tmpfiles as part of the build

19 months agoRun systemd-tmpfiles as part of the build 2285/head
Daan De Meyer [Sun, 14 Jan 2024 20:53:06 +0000 (21:53 +0100)] 
Run systemd-tmpfiles as part of the build

Let's make sure we take user provided tmpfiles snippets into account
as well. Since systemd now mounts the initramfs read-only by default,
we need to make sure all tmpfiles snippets that copy to /etc have
already been processed during the image build itself as they won't be
able to run during the initramfs stage.

19 months agoUse 1. for ordered list
Daan De Meyer [Sun, 14 Jan 2024 20:58:41 +0000 (21:58 +0100)] 
Use 1. for ordered list

The actual number used doesn't matter, so just use 1. everywhere.

19 months agoSkip normalize_mtime() if the directory does not exist
Daan De Meyer [Sun, 14 Jan 2024 19:50:08 +0000 (20:50 +0100)] 
Skip normalize_mtime() if the directory does not exist

19 months agoMerge pull request #2283 from DaanDeMeyer/arch
Daan De Meyer [Sun, 14 Jan 2024 19:38:23 +0000 (20:38 +0100)] 
Merge pull request #2283 from DaanDeMeyer/arch

Make sure /etc/mtab exists in sandbox

19 months agoMake sure /etc/mtab exists in sandbox 2283/head
Daan De Meyer [Sun, 14 Jan 2024 17:02:39 +0000 (18:02 +0100)] 
Make sure /etc/mtab exists in sandbox

Required for pacman's CheckSpace option. To avoid messing with the
package manager tree /etc too much, we bind mount individual
subdirectories of it instead of the entire directory.

19 months agoMerge pull request #2279 from DaanDeMeyer/rpm-build
Jörg Behrmann [Sun, 14 Jan 2024 18:40:58 +0000 (19:40 +0100)] 
Merge pull request #2279 from DaanDeMeyer/rpm-build

Drop rpm-build from 30-rpm default image config

19 months agoMake sure we don't build the same tools tree more than once
Daan De Meyer [Sun, 14 Jan 2024 16:16:05 +0000 (17:16 +0100)] 
Make sure we don't build the same tools tree more than once

We can do this by simply checking if the output path already exists
instead of relying on needs_build(). This allows us to refactor
needs_build() to needs_clean(). We also move some prechecks into
run_build() and run_clean() so as to not duplicate them and improve
the logging messages in run_clean().

Fixes #2280

19 months agoBe more careful with mounting /etc/alternatives in relaxed mode
Daan De Meyer [Sun, 14 Jan 2024 16:57:34 +0000 (17:57 +0100)] 
Be more careful with mounting /etc/alternatives in relaxed mode

Otherwise we might end up trying to create a mountpoint in the host's
/etc.

19 months agoAdd BuildSources=. to the default image configuration 2279/head
Daan De Meyer [Fri, 12 Jan 2024 14:28:41 +0000 (15:28 +0100)] 
Add BuildSources=. to the default image configuration

If we enable the rpm build, we set BuildSources= which means we
override the default build sources. However we still want the source
directory to be used as BuildSources= as well, so configure it explicitly.

19 months agoSimplify run_prepare_scripts()
Daan De Meyer [Fri, 12 Jan 2024 14:23:44 +0000 (15:23 +0100)] 
Simplify run_prepare_scripts()

Make it look more like the other script functions.

19 months agoUse finalize_ephemeral_source_mounts() for package managers as well
Daan De Meyer [Fri, 12 Jan 2024 14:41:22 +0000 (15:41 +0100)] 
Use finalize_ephemeral_source_mounts() for package managers as well

Otherwise we'll still  create mountpoints in the actual source
directories when using nested build sources.

19 months agoDrop rpm-build from 30-rpm default image config
Daan De Meyer [Fri, 12 Jan 2024 13:50:20 +0000 (14:50 +0100)] 
Drop rpm-build from 30-rpm default image config

We already install it unconditionally these days.

19 months agoRelease 20.1 v20.1
Luca Boccassi [Fri, 12 Jan 2024 13:41:06 +0000 (13:41 +0000)] 
Release 20.1

19 months agoAdd note on BuildSources= being required to install local packages.
Daan De Meyer [Fri, 12 Jan 2024 12:10:09 +0000 (13:10 +0100)] 
Add note on BuildSources= being required to install local packages.

19 months agoVerify that output path is not a symlink in needs_build()
Daan De Meyer [Fri, 12 Jan 2024 11:30:41 +0000 (12:30 +0100)] 
Verify that output path is not a symlink in needs_build()

Otherwise if we first build a disk image and then try to run
"mkosi -t directory qemu" we won't actually rebuild the image as it
will think the output already exists and we'll try to boot a disk
image as a directory.

19 months agoUpdate NEWS
Daan De Meyer [Fri, 12 Jan 2024 11:03:00 +0000 (12:03 +0100)] 
Update NEWS

19 months agoMerge pull request #2275 from DaanDeMeyer/selinux
Daan De Meyer [Fri, 12 Jan 2024 10:30:39 +0000 (11:30 +0100)] 
Merge pull request #2275 from DaanDeMeyer/selinux

Improve SELinux binary policy selection

19 months agoAdd debug log when we don't add microcode initrd 2275/head
Daan De Meyer [Fri, 12 Jan 2024 09:50:09 +0000 (10:50 +0100)] 
Add debug log when we don't add microcode initrd

19 months agoAllow gpg access to /run/pscsd/pscsd.comm on the host if it exists
Daan De Meyer [Fri, 12 Jan 2024 09:33:26 +0000 (10:33 +0100)] 
Allow gpg access to /run/pscsd/pscsd.comm on the host if it exists

This is required for gpg to communicate with pscsd for interaction
with smartcards so let's mount it in if it exists.

19 months agoImprove SELinux binary policy selection
Daan De Meyer [Fri, 12 Jan 2024 09:15:53 +0000 (10:15 +0100)] 
Improve SELinux binary policy selection

Let's deal with the possibility that there might be more than one
policy in the binary policy directory. Let's also make sure that we
consider other files in the directory that might not be policies.

19 months agoPopulate only using the archlinux keyring
Daan De Meyer [Thu, 11 Jan 2024 19:26:07 +0000 (20:26 +0100)] 
Populate only using the archlinux keyring

Otherwise on Debian and Ubuntu we end up adding the Debian/Ubuntu
keyrings as well which is useless and slows down builds.

19 months agoMerge pull request #2271 from DaanDeMeyer/fix
Daan De Meyer [Thu, 11 Jan 2024 19:20:44 +0000 (20:20 +0100)] 
Merge pull request #2271 from DaanDeMeyer/fix

Two fixes

19 months agoUse grub binaries from tools tree instead of from image 2271/head
Daan De Meyer [Thu, 11 Jan 2024 13:07:20 +0000 (14:07 +0100)] 
Use grub binaries from tools tree instead of from image

Let's give this another try and use grub tools from the tools tree
instead of from the image.

We also hardcode the grub prefix per distribution because if we use
grub binaries from the tools tree there might not be any installed
in the image itself which means we can't derive the prefix from the
binaries in the image.

19 months agoUse default_factory for tools tree options defaults
Daan De Meyer [Thu, 11 Jan 2024 16:15:46 +0000 (17:15 +0100)] 
Use default_factory for tools tree options defaults

19 months agoSilence mkfs.erofs in CI
Daan De Meyer [Thu, 11 Jan 2024 15:34:16 +0000 (16:34 +0100)] 
Silence mkfs.erofs in CI

It prints a line for each file included in the image when connected
to a pipe which is extremely noisy so silence it.

19 months agoPrefer qemu-system-xxx binaries
Daan De Meyer [Thu, 11 Jan 2024 13:08:25 +0000 (14:08 +0100)] 
Prefer qemu-system-xxx binaries

The qemu and qemu-kvm binaries are just shorthands for specific configs.
Let's prefer the actual binaries over the shorthands.

19 months agoLog before going into debug shell
Daan De Meyer [Thu, 11 Jan 2024 07:55:13 +0000 (08:55 +0100)] 
Log before going into debug shell

Fixes #2269

19 months agoCheck for all required setfiles inputs in want_selinux_relabel()
Daan De Meyer [Wed, 10 Jan 2024 15:47:58 +0000 (16:47 +0100)] 
Check for all required setfiles inputs in want_selinux_relabel()

On Debian when policycoreutils is installed a policy is configured
without a matching binary policy being installed, so we have to
check that all parts are there.

19 months agoSkip caching if Overlay= is enabled
Daan De Meyer [Wed, 10 Jan 2024 11:20:29 +0000 (12:20 +0100)] 
Skip caching if Overlay= is enabled

When Overlay= is enabled we can't do Incremental= caching so skip
save_cache() if Overlay= is enabled.

19 months agoCopy nspawn settings to the output directory again
Daan De Meyer [Wed, 10 Jan 2024 09:58:29 +0000 (10:58 +0100)] 
Copy nspawn settings to the output directory again

machinectl pull-tar looks for a settings file so let's make sure
the output directory can be used directly for this purpose by copying
the nspawn settings file to the output directory again.

19 months agoMerge pull request #2263 from DaanDeMeyer/fix
Daan De Meyer [Wed, 10 Jan 2024 09:48:28 +0000 (10:48 +0100)] 
Merge pull request #2263 from DaanDeMeyer/fix

Fix invoked_as_root initialization

19 months agoActually call configure_extension_release() 2263/head
Daan De Meyer [Wed, 10 Jan 2024 08:10:44 +0000 (09:10 +0100)] 
Actually call configure_extension_release()