]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
16 months agoMake sure multiple image definitions can parse the same include 2580/head
Daan De Meyer [Wed, 3 Apr 2024 08:24:05 +0000 (10:24 +0200)] 
Make sure multiple image definitions can parse the same include

16 months agoSimplify config parsing
Daan De Meyer [Wed, 3 Apr 2024 08:22:46 +0000 (10:22 +0200)] 
Simplify config parsing

Instead of passing namespace and defaults everywhere, have every
nested function operate on the function global object and simply reset
the objects to the copy we took after we finish parsing a single image
definition.

16 months agoMerge pull request #2572 from DaanDeMeyer/journal
Daan De Meyer [Tue, 2 Apr 2024 10:51:53 +0000 (12:51 +0200)] 
Merge pull request #2572 from DaanDeMeyer/journal

Add ForwardJournal= to enable log forwarding of VMs and containers

16 months agoAdd ForwardJournal= to enable log forwarding of VMs and containers 2572/head
Daan De Meyer [Sun, 31 Mar 2024 17:54:22 +0000 (19:54 +0200)] 
Add ForwardJournal= to enable log forwarding of VMs and containers

In systemd v256, journald will support forwarding to systemd-journal-remote
via the new journal.forward_to_socket credential. Let's expose this
functionality via a new ForwardJournal= setting, which specifies a path to
which logs should be forwarded.

16 months agoIntroduce INVOKING_USER.chown()
Daan De Meyer [Sun, 31 Mar 2024 17:21:05 +0000 (19:21 +0200)] 
Introduce INVOKING_USER.chown()

16 months agoMake pass_fds follow the $LISTEN_FDS protocol for socket activation
Daan De Meyer [Sun, 31 Mar 2024 14:39:29 +0000 (16:39 +0200)] 
Make pass_fds follow the $LISTEN_FDS protocol for socket activation

This allows us to pass file descriptors to binaries implementing
systemd socket activation.

16 months agoAdd setpgid to sandbox instead of cmdline
Daan De Meyer [Sun, 31 Mar 2024 14:35:03 +0000 (16:35 +0200)] 
Add setpgid to sandbox instead of cmdline

This makes sure we don't log it in debug mode.

16 months agoMerge pull request #2575 from DaanDeMeyer/creds
Daan De Meyer [Tue, 2 Apr 2024 10:12:07 +0000 (12:12 +0200)] 
Merge pull request #2575 from DaanDeMeyer/creds

Parse credentials from files/dirs during parsing instead of afterwards

16 months agoParse credentials from files/dirs during parsing instead of afterwards 2575/head
Daan De Meyer [Mon, 1 Apr 2024 16:02:07 +0000 (18:02 +0200)] 
Parse credentials from files/dirs during parsing instead of afterwards

16 months agoAllocate scopes for virtiofsd and swtpm as well
Daan De Meyer [Mon, 1 Apr 2024 18:27:59 +0000 (20:27 +0200)] 
Allocate scopes for virtiofsd and swtpm as well

16 months agoBump github/codeql-action from 3.24.8 to 3.24.9
dependabot[bot] [Mon, 1 Apr 2024 22:56:31 +0000 (22:56 +0000)] 
Bump github/codeql-action from 3.24.8 to 3.24.9

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.8 to 3.24.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/05963f47d870e2cb19a537396c1f668a348c7d8f...1b1aada464948af03b950897e5eb522f92603cc2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
16 months agoAdd path_default=False to two more settings
Daan De Meyer [Mon, 1 Apr 2024 16:01:37 +0000 (18:01 +0200)] 
Add path_default=False to two more settings

16 months agoFix empty config.json caused by buffered write
Cornelius Hoffmann [Mon, 1 Apr 2024 14:48:52 +0000 (16:48 +0200)] 
Fix empty config.json caused by buffered write

16 months agoSwitch to linux-virtual on Ubuntu
Daan De Meyer [Fri, 29 Mar 2024 07:25:48 +0000 (08:25 +0100)] 
Switch to linux-virtual on Ubuntu

linux-virtual finally supports credentials so we don't need to use
linux-generic anymore.

16 months agoFix kernel installed check
Daan De Meyer [Thu, 28 Mar 2024 17:51:36 +0000 (18:51 +0100)] 
Fix kernel installed check

16 months agoPass --quiet when invoking busctl
Daan De Meyer [Thu, 28 Mar 2024 12:26:12 +0000 (13:26 +0100)] 
Pass --quiet when invoking busctl

We don't care about the return value of the DBUS method so let's
silence busctl so it doesn't show it.

16 months agoFix scope allocation
Daan De Meyer [Thu, 28 Mar 2024 10:56:52 +0000 (11:56 +0100)] 
Fix scope allocation

16 months agoMerge pull request #2564 from DaanDeMeyer/ssh
Daan De Meyer [Thu, 28 Mar 2024 12:15:00 +0000 (13:15 +0100)] 
Merge pull request #2564 from DaanDeMeyer/ssh

Support mkosi ssh for multiple running instances of the same image

16 months agoAllocate scope for and register virtual machine if possible 2564/head
Daan De Meyer [Thu, 28 Mar 2024 10:56:52 +0000 (11:56 +0100)] 
Allocate scope for and register virtual machine if possible

These might be long running so let's make them more introspectible
by allocating a scope for them and registering them with machined
if possible.

16 months agoAdd foreground argument to run()
Daan De Meyer [Thu, 28 Mar 2024 10:56:35 +0000 (11:56 +0100)] 
Add foreground argument to run()

16 months agoRework spawn() process termination slightly
Daan De Meyer [Thu, 28 Mar 2024 10:56:15 +0000 (11:56 +0100)] 
Rework spawn() process termination slightly

16 months agoSupport mkosi ssh for multiple running instances of the same image
Daan De Meyer [Wed, 27 Mar 2024 22:48:36 +0000 (23:48 +0100)] 
Support mkosi ssh for multiple running instances of the same image

Let's add a stopgap solution until systemd-machined supports everything
we need. We maintain a super basic JSON state file in the runtime directory
that is used to map a machine name to the corresponding SSH proxy command.

We also store the path to the ssh key in there so that mkosi ssh can be
run from every directory.

The new Machine= option allows selecting the machine name to use. Unless
set explicitly, we also use the machine name as the hostname for the machine.

16 months agoUpdate NEWS
Daan De Meyer [Wed, 27 Mar 2024 19:35:29 +0000 (20:35 +0100)] 
Update NEWS

16 months agodocs: Mention that only dnf/dnf5 support various proxy settings
Daan De Meyer [Wed, 27 Mar 2024 19:26:37 +0000 (20:26 +0100)] 
docs: Mention that only dnf/dnf5 support various proxy settings

16 months agoOnly mount output directory if it exists when running clean scripts
Daan De Meyer [Wed, 27 Mar 2024 15:07:18 +0000 (16:07 +0100)] 
Only mount output directory if it exists when running clean scripts

16 months agoMerge pull request #2561 from DaanDeMeyer/clean
Daan De Meyer [Wed, 27 Mar 2024 14:48:41 +0000 (15:48 +0100)] 
Merge pull request #2561 from DaanDeMeyer/clean

Add CleanScripts=

16 months agoAdd CleanScripts= 2561/head
Daan De Meyer [Wed, 27 Mar 2024 13:43:58 +0000 (14:43 +0100)] 
Add CleanScripts=

Clean scripts can be used to remove any outputs that mkosi doesn't
know about, e.g. packages built in mkosi build scripts and copied
to the output directory.

16 months agoMove ConfigureScripts= to [Config] section
Daan De Meyer [Wed, 27 Mar 2024 13:38:51 +0000 (14:38 +0100)] 
Move ConfigureScripts= to [Config] section

16 months agoDon't pass final argument to configure scripts
Daan De Meyer [Wed, 27 Mar 2024 13:38:15 +0000 (14:38 +0100)] 
Don't pass final argument to configure scripts

16 months agoMerge pull request #2559 from DaanDeMeyer/osrelease
Daan De Meyer [Wed, 27 Mar 2024 13:12:54 +0000 (14:12 +0100)] 
Merge pull request #2559 from DaanDeMeyer/osrelease

Extension image fixes

16 months agoDon't rebuild local package repository if OutputFormat == none 2559/head
Daan De Meyer [Wed, 27 Mar 2024 11:44:12 +0000 (12:44 +0100)] 
Don't rebuild local package repository if OutputFormat == none

We're not going to do anything anymore if the output format == none
so don't rebuild the local package repository.

16 months agoExtension image fixes
Daan De Meyer [Wed, 27 Mar 2024 10:25:08 +0000 (11:25 +0100)] 
Extension image fixes

- Insist on /usr/lib/os-release existing and read only from it instead
  of /etc/os-release
- Don't fail if /usr/lib/os-release doesn't exist when building a sysext
  or confext.
- Skip more operations when building sysext/confext images

16 months agoFix PCR banks
Daan De Meyer [Wed, 27 Mar 2024 09:59:52 +0000 (10:59 +0100)] 
Fix PCR banks

Fixes: d44e0f8eaa9bc4837d27bbbb55969f2fa5187897
16 months agoStop measuring for SHA1 TPM bank
Daan De Meyer [Wed, 27 Mar 2024 08:23:17 +0000 (09:23 +0100)] 
Stop measuring for SHA1 TPM bank

Let's avoid having to deal with openssl configuration to re-enable
SHA1 support by not measuring for the SHA1 TPM bank.

16 months agoMerge pull request #2553 from behrmann/jsonkeys
Daan De Meyer [Tue, 26 Mar 2024 23:02:03 +0000 (00:02 +0100)] 
Merge pull request #2553 from behrmann/jsonkeys

Capitalise inner JSON keys

16 months agoPass through SYSTEMD_LOG_LEVEL in run() as well
Daan De Meyer [Tue, 26 Mar 2024 12:42:59 +0000 (13:42 +0100)] 
Pass through SYSTEMD_LOG_LEVEL in run() as well

16 months agoSet TMPDIR and HOME for spawn() as well
Daan De Meyer [Tue, 26 Mar 2024 12:42:36 +0000 (13:42 +0100)] 
Set TMPDIR and HOME for spawn() as well

16 months agoconfig: capitalise inner keys in JSON dump 2553/head
Jörg Behrmann [Tue, 26 Mar 2024 10:36:31 +0000 (11:36 +0100)] 
config: capitalise inner keys in JSON dump

16 months agoMerge pull request #2554 from DaanDeMeyer/fix
Daan De Meyer [Tue, 26 Mar 2024 13:39:46 +0000 (14:39 +0100)] 
Merge pull request #2554 from DaanDeMeyer/fix

Make sure we create parent directories as well

16 months agoSwitch back to debian testing 2554/head
Daan De Meyer [Tue, 26 Mar 2024 11:17:51 +0000 (12:17 +0100)] 
Switch back to debian testing

unstable breaks too much to be useful for CI. To keep CI green, we
stop installing pacman-package-manager in the default images and disable
debian tools tree in CI.

16 months agoDo check_inputs() check before calling run_sync()
Daan De Meyer [Tue, 26 Mar 2024 12:25:06 +0000 (13:25 +0100)] 
Do check_inputs() check before calling run_sync()

16 months agoMerge pull request #2552 from DaanDeMeyer/configure-scripts
Daan De Meyer [Tue, 26 Mar 2024 12:18:21 +0000 (13:18 +0100)] 
Merge pull request #2552 from DaanDeMeyer/configure-scripts

Add support for configure scripts

16 months agoAdd support for configure scripts 2552/head
Daan De Meyer [Tue, 26 Mar 2024 09:49:26 +0000 (10:49 +0100)] 
Add support for configure scripts

These allow dynamically modifying the configuration.

16 months agoMake sure we create parent directories as well
Daan De Meyer [Tue, 26 Mar 2024 10:44:38 +0000 (11:44 +0100)] 
Make sure we create parent directories as well

16 months agoconfig: use super in JsonEncoder instead of explicit parent type
Jörg Behrmann [Tue, 26 Mar 2024 10:35:46 +0000 (11:35 +0100)] 
config: use super in JsonEncoder instead of explicit parent type

16 months agotests: test that environment keys are not changed by JSON serialisation
Jörg Behrmann [Tue, 26 Mar 2024 10:35:13 +0000 (11:35 +0100)] 
tests: test that environment keys are not changed by JSON serialisation

16 months agodocs: Update execution flow
Daan De Meyer [Tue, 26 Mar 2024 09:49:01 +0000 (10:49 +0100)] 
docs: Update execution flow

16 months agoFix bug in optional_enum_transformer()
Daan De Meyer [Tue, 26 Mar 2024 09:34:07 +0000 (10:34 +0100)] 
Fix bug in optional_enum_transformer()

We need to instantiate the nested type, not the optional itself.

16 months agoAllow escaping in QemuArgs=
Daan De Meyer [Tue, 26 Mar 2024 08:56:07 +0000 (09:56 +0100)] 
Allow escaping in QemuArgs=

Sometimes we need spaces inside the qemu argument so let's make sure
that's possible.

16 months agoMerge pull request #2550 from DaanDeMeyer/socket
Daan De Meyer [Mon, 25 Mar 2024 13:05:55 +0000 (14:05 +0100)] 
Merge pull request #2550 from DaanDeMeyer/socket

kernel-install: Don't copy pacman gpg sockets

16 months agoci: Use ruff check instead of ruff 2550/head
Daan De Meyer [Mon, 25 Mar 2024 12:29:43 +0000 (13:29 +0100)] 
ci: Use ruff check instead of ruff

Fixes deprecation warning

16 months agokernel-install: Don't copy pacman gpg sockets
Daan De Meyer [Mon, 25 Mar 2024 11:22:12 +0000 (12:22 +0100)] 
kernel-install: Don't copy pacman gpg sockets

These should be created in /run but gpg's logic for that is broken
for the root user (it checks for /run/user/0 which will never exist)
so the sockets are created in the gpg home dir (/etc/pacman.d/gnupg)
instead. Let's make sure we don't try to copy those as they cause issues
with cp -R.

Fixes #2547

16 months agoMerge pull request #2549 from DaanDeMeyer/fix
Daan De Meyer [Mon, 25 Mar 2024 11:21:09 +0000 (12:21 +0100)] 
Merge pull request #2549 from DaanDeMeyer/fix

Various fixes

16 months agoPrefer virtiofsd file handles when running as root instead of making them mandatory 2549/head
Daan De Meyer [Mon, 25 Mar 2024 10:30:48 +0000 (11:30 +0100)] 
Prefer virtiofsd file handles when running as root instead of making them mandatory

We might be invoked as root from a user namespace which won't have
access to file handles.

16 months agoOnly do CAP_NET_ADMIN capability check when running as root
Daan De Meyer [Mon, 25 Mar 2024 10:24:04 +0000 (11:24 +0100)] 
Only do CAP_NET_ADMIN capability check when running as root

If we're not running as root, bubblewrap will unshare a user namespace
in which it gets a full set of capabilities, even if the user on the
host doesn't have them, so let's only do the CAP_NET_ADMIN check if
we're running as root.

16 months agoImprove home directory detection
Daan De Meyer [Mon, 25 Mar 2024 10:20:58 +0000 (11:20 +0100)] 
Improve home directory detection

If we're invoked as root from a home directory, always use that as
the user's home directory instead of trying to detect it ourselves, this
makes sure we use the right home directory even when we're invoked in a
user namespace.

16 months agoRemove setuid/setgid bits from build and workspace directory
Daan De Meyer [Thu, 21 Mar 2024 18:59:24 +0000 (19:59 +0100)] 
Remove setuid/setgid bits from build and workspace directory

Both of these can be inherited so remove them from both the workspace
and the build directory where inheriting these bits could end up
leaking stuff from the host into the image.

Also remove INVOKING_USER.mkdir() while we're at it as only one user
was remaining which we can do much more easily by doing the logic
before we go into the user namespace.

16 months agoMerge pull request #2546 from DaanDeMeyer/fix
Daan De Meyer [Fri, 22 Mar 2024 08:51:51 +0000 (09:51 +0100)] 
Merge pull request #2546 from DaanDeMeyer/fix

Make sure we yield an empty section marker at the end of parse_ini()

16 months agoMake sure we yield an empty section marker at the end of parse_ini() 2546/head
Daan De Meyer [Fri, 22 Mar 2024 07:47:29 +0000 (08:47 +0100)] 
Make sure we yield an empty section marker at the end of parse_ini()

Fixes #2545

16 months agoGet rid of "help" test
Daan De Meyer [Fri, 22 Mar 2024 07:46:59 +0000 (08:46 +0100)] 
Get rid of "help" test

It starts a pager while running the tests interactively, let's just
remove it as it isn't terribly useful.

16 months agoMerge pull request #2543 from DaanDeMeyer/proxy
Daan De Meyer [Thu, 21 Mar 2024 14:08:40 +0000 (15:08 +0100)] 
Merge pull request #2543 from DaanDeMeyer/proxy

Add proxy settings + various fixes

16 months agoOnly set extra_groups for mkdir() if we were invoked as root 2543/head
Daan De Meyer [Thu, 21 Mar 2024 12:35:01 +0000 (13:35 +0100)] 
Only set extra_groups for mkdir() if we were invoked as root

The extra groups of the user are not mapped into the user namespace
we create and as such can't be set when invoking a subprocess if
we weren't invoked as root.

16 months agoAdd checks for sbsiglist and sbvarsign when doing SB auto enrollment
Daan De Meyer [Thu, 21 Mar 2024 11:29:56 +0000 (12:29 +0100)] 
Add checks for sbsiglist and sbvarsign when doing SB auto enrollment

16 months agoExplicitly set mode of workspace to 700
Daan De Meyer [Thu, 21 Mar 2024 11:13:05 +0000 (12:13 +0100)] 
Explicitly set mode of workspace to 700

If the sticky bit is set on the parent directory of the workspace,
it's inherited by the workspace directory and then inherited by the
image root directory and infects the entire image. Let's make sure
it is not set on the workspace directory to avoid leaking host specific
details into the image.

16 months agoAdd proxy settings
Daan De Meyer [Thu, 21 Mar 2024 10:32:27 +0000 (11:32 +0100)] 
Add proxy settings

These allow using mkosi behind a proxy that requires proxy authentication.
Only dnf seems to allow specifying these certificates as individual settings
so other package managers are not fully supported for now.

We mount the proxy certificates and keys to /proxy.xxx in the sandbox because
otherwise they might end up being mounted at the same location as the certificates
from the tools tree, which means those wouldn't be used.

16 months agoMount pkgmngr/etc as a whole instead of individual files in it.
Daan De Meyer [Wed, 20 Mar 2024 08:57:26 +0000 (09:57 +0100)] 
Mount pkgmngr/etc as a whole instead of individual files in it.

We stopped doing this because bubblewrap would create the /etc/mtab
in the package manager tree /etc and leave it there after exiting,
which would cause bubblewrap to fail the next time we executed it as
the symlink already existed.

To avoid reintroducing this issue, we only have bubblewrap create the
symlink if nothing's going to be mounted to /etc and create the symlink
ourselves in the pkgmngr/etc.

These changes also make sure that the mounts from finalize_passwd_mounts()
take precedence over the passwd and group files from pkgmngr/etc.

16 months agoOnly set some environment variables when invoking package managers
Daan De Meyer [Wed, 20 Mar 2024 08:13:16 +0000 (09:13 +0100)] 
Only set some environment variables when invoking package managers

We really only want to set KERNEL_INSTALL_BYPASS and
SYSTEMD_HWDB_UPDATE_BYPASS when we're invoking package managers so
let's make sure those are only set when invoking package managers.

Let's also allow users to override both all of these and let's not
set them when Bootable=no so distros can do whatever they want if
mkosi's bootable image logic is not being used.

16 months agoSet $HOME to the user's home directory in sync scripts
Daan De Meyer [Wed, 20 Mar 2024 12:08:21 +0000 (13:08 +0100)] 
Set $HOME to the user's home directory in sync scripts

Makes sure git can find the user's git configuration.

17 months agoMerge pull request #2534 from CodethinkLabs/richardmaw/non-home-dir-workdirs
Daan De Meyer [Wed, 20 Mar 2024 11:24:22 +0000 (12:24 +0100)] 
Merge pull request #2534 from CodethinkLabs/richardmaw/non-home-dir-workdirs

Further support for working with sudo and non-home directories

17 months agoRelax mkdir/rchown subpath of home check to owns a parent dir 2534/head
Richard Maw [Tue, 19 Mar 2024 18:02:33 +0000 (18:02 +0000)] 
Relax mkdir/rchown subpath of home check to owns a parent dir

"the user owns a parent directory" is a lot less strict than
being under the home directory, but allows using shared directories
that are not mounted under home, and at least requires some explicit config
to create the directory before it can be used
rather than just being any directory the user is able to create.

17 months agoSet extra groups in INVOKING_USER.mkdir
Richard Maw [Tue, 19 Mar 2024 17:57:05 +0000 (17:57 +0000)] 
Set extra groups in INVOKING_USER.mkdir

If a parent directory of the path to create isn't traversable
then mkdir will fail to create the directory even if the immediate parent
exists and has the correct permissions.

This can happen in shared development hardware where storage is allocated
using a directory with a common unix group e.g.

$ ls -ld /data
drwxrws--- 4 root devgroup 4096 Mar 12 17:11 /data

17 months agoMove extra groups list calculation into INVOKING_USER
Richard Maw [Tue, 19 Mar 2024 17:55:51 +0000 (17:55 +0000)] 
Move extra groups list calculation into INVOKING_USER

17 months agoBump github/codeql-action from 3.24.7 to 3.24.8
dependabot[bot] [Wed, 20 Mar 2024 07:22:13 +0000 (07:22 +0000)] 
Bump github/codeql-action from 3.24.7 to 3.24.8

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.7 to 3.24.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/3ab4101902695724f9365a384f86c1074d94e18c...05963f47d870e2cb19a537396c1f668a348c7d8f)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agoBump redhat-plumbers-in-action/differential-shellcheck
dependabot[bot] [Wed, 20 Mar 2024 07:21:58 +0000 (07:21 +0000)] 
Bump redhat-plumbers-in-action/differential-shellcheck

Bumps [redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/redhat-plumbers-in-action/differential-shellcheck/releases)
- [Changelog](https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/redhat-plumbers-in-action/differential-shellcheck/compare/b9df2a9417f69c056e0aeaf870abd9a2065a403e...c15070885a82a2c93db8a765d332c38c50dde8b3)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/differential-shellcheck
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agoMerge pull request #2535 from DaanDeMeyer/dependabot
Daan De Meyer [Wed, 20 Mar 2024 07:20:54 +0000 (08:20 +0100)] 
Merge pull request #2535 from DaanDeMeyer/dependabot

Enable dependabot

17 months agoci: Pull in specific action commits 2535/head
Daan De Meyer [Tue, 19 Mar 2024 21:21:20 +0000 (22:21 +0100)] 
ci: Pull in specific action commits

Let's copy what the systemd repo does. The specific commits are
the same ones used by the systemd repository.

17 months agoEnable dependabot
Daan De Meyer [Tue, 19 Mar 2024 21:18:45 +0000 (22:18 +0100)] 
Enable dependabot

To make sure our actions stay up to date

17 months agoAdd minimal /etc/group
Daan De Meyer [Mon, 18 Mar 2024 21:15:06 +0000 (22:15 +0100)] 
Add minimal /etc/group

We already have a minimal /etc/passwd, let's add a minimal /etc/group
as well.

17 months agoMerge pull request #2532 from DaanDeMeyer/kmod
Daan De Meyer [Tue, 19 Mar 2024 11:58:37 +0000 (12:58 +0100)] 
Merge pull request #2532 from DaanDeMeyer/kmod

kmod: Don't assume all modules are in kernel/ subdirectory

17 months agokmod: Don't assume all modules are in kernel/ subdirectory 2532/head
Daan De Meyer [Tue, 19 Mar 2024 09:31:31 +0000 (10:31 +0100)] 
kmod: Don't assume all modules are in kernel/ subdirectory

When dkms is used or depending on the distribution, there might be modules
in other directories than kernel/.

17 months agoDon't load configuration for verbs that don't need it
Daan De Meyer [Mon, 18 Mar 2024 21:28:08 +0000 (22:28 +0100)] 
Don't load configuration for verbs that don't need it

17 months agoAdd specifier for profile
Cornelius Hoffmann [Tue, 19 Mar 2024 10:05:15 +0000 (11:05 +0100)] 
Add specifier for profile

17 months agokmod: Simplify resolve_module_dependencies() slightly
Daan De Meyer [Tue, 19 Mar 2024 09:30:20 +0000 (10:30 +0100)] 
kmod: Simplify resolve_module_dependencies() slightly

17 months agoci: Use pcid=off with qemu instead of disabling secure boot
Daan De Meyer [Mon, 18 Mar 2024 10:24:37 +0000 (11:24 +0100)] 
ci: Use pcid=off with qemu instead of disabling secure boot

This allows us to boot with secure boot again until the Hyper-V bug
is fixed that causes KVM to crash.

We also switch back to using 2Gs of ram by default as a second Hyper-V
bug prevents us from using any more on Github Actions.

17 months agoSimplify gen_required_kernel_modules()
Daan De Meyer [Mon, 18 Mar 2024 10:58:29 +0000 (11:58 +0100)] 
Simplify gen_required_kernel_modules()

- Make sure we yield paths in sorted order
- Use yield from more
- Replace parents_relative_to() with a simpler solution

17 months agoMerge pull request #2523 from DaanDeMeyer/kmod
Daan De Meyer [Mon, 18 Mar 2024 09:56:05 +0000 (10:56 +0100)] 
Merge pull request #2523 from DaanDeMeyer/kmod

Only add directories with modules in them to the kmods initrd

17 months agomkosi-initrd: Tighten up kernel module regexes 2523/head
Daan De Meyer [Mon, 18 Mar 2024 09:02:49 +0000 (10:02 +0100)] 
mkosi-initrd: Tighten up kernel module regexes

The previous ones matched more than than the modules we wanted, so
let's make sure we only match the ones we want.

17 months agoRemove unneeded directories as well in process_kernel_modules()
Daan De Meyer [Mon, 18 Mar 2024 09:01:28 +0000 (10:01 +0100)] 
Remove unneeded directories as well in process_kernel_modules()

17 months agoOnly add directories with modules in them to the kmods initrd
Daan De Meyer [Mon, 18 Mar 2024 08:39:03 +0000 (09:39 +0100)] 
Only add directories with modules in them to the kmods initrd

17 months agoDefault to UTC timezone if we can't figure out the local one
Daan De Meyer [Sun, 17 Mar 2024 16:14:10 +0000 (17:14 +0100)] 
Default to UTC timezone if we can't figure out the local one

17 months agoMerge pull request #2521 from septatrix/fix/include-firmware
Daan De Meyer [Mon, 18 Mar 2024 07:13:34 +0000 (08:13 +0100)] 
Merge pull request #2521 from septatrix/fix/include-firmware

Fix erroneous negation leading to omitted firmware files

17 months agoFix inclusion of firmware files 2521/head
Septatrix [Mon, 18 Mar 2024 00:08:45 +0000 (01:08 +0100)] 
Fix inclusion of firmware files

17 months agoAdd .venv to gitignore
Septatrix [Sun, 17 Mar 2024 18:30:27 +0000 (19:30 +0100)] 
Add .venv to gitignore

17 months agoMerge pull request #2518 from DaanDeMeyer/hypervisor
Daan De Meyer [Sun, 17 Mar 2024 15:55:40 +0000 (16:55 +0100)] 
Merge pull request #2518 from DaanDeMeyer/hypervisor

Introduce VirtualMachineMonitor= and various cleanups

17 months agoSwitch to debian unstable temporarily in default image and tests 2518/head
Daan De Meyer [Sun, 17 Mar 2024 13:44:03 +0000 (14:44 +0100)] 
Switch to debian unstable temporarily in default image and tests

pacman got removed from Debian Testing, so let's use unstable until
it's added back.

17 months agoHard code cache directory in test framework
Daan De Meyer [Sun, 17 Mar 2024 14:58:34 +0000 (15:58 +0100)] 
Hard code cache directory in test framework

17 months agoAdd ToolsTreeDistribution= match
Daan De Meyer [Sun, 17 Mar 2024 14:13:10 +0000 (15:13 +0100)] 
Add ToolsTreeDistribution= match

17 months agomkosi-initrd: Merge libtss configs again
Daan De Meyer [Sun, 17 Mar 2024 13:40:39 +0000 (14:40 +0100)] 
mkosi-initrd: Merge libtss configs again

Removing the Suggests on the old name from systemd in Debian Testing
seems to have fixed the apt error we were getting before.

17 months agoCheck whether ukify is available in want_uki()
Daan De Meyer [Sun, 17 Mar 2024 13:26:36 +0000 (14:26 +0100)] 
Check whether ukify is available in want_uki()

17 months agoFix missing tss libraries on OpenSUSE
Daan De Meyer [Sun, 17 Mar 2024 09:51:20 +0000 (10:51 +0100)] 
Fix missing tss libraries on OpenSUSE