summaryrefslogtreecommitdiffstats
path: root/mkosi.presets (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Enable more optionsDaan De Meyer2023-06-022-0/+10
| | | | | | We build with support for selinux/apparmor where applicable but disable them at runtime as even in permissive mode they're horribly broken.
* mkosi: Only lower device timeout instead of all timeoutsDaan De Meyer2023-06-021-2/+0
| | | | | | We only really care about lowering the device timeout so we get to a shell faster when the root device doesn't appear so let's only lower that timeout instead of lowering all default timeouts.
* mkosi: Sign expected PCRsDaan De Meyer2023-06-021-1/+3
| | | | | This is now possible without a TMP device so let's start signing PCRs when building images with mkosi.
* mkosi: Remove file blacklisting erofs module in opensuse initrdDaan De Meyer2023-06-021-0/+7
|
* mkosi: Enable set -e in postinst scriptDaan De Meyer2023-06-021-0/+1
|
* mkosi: Move python3-pytest-flakes to build packages on opensuseDaan De Meyer2023-06-021-1/+1
|
* mkosi: Add missing tss2 dependenciesDaan De Meyer2023-06-022-0/+5
|
* mkosi: Check for failures by mounting againDaan De Meyer2023-05-311-0/+4
| | | | | | We rely on vsock to communicate the exit status back to us from the VM but vsock in Github Actions is broken so let's switch back to mounting for now.
* mkosi: Don't fail on systemd-vconsole-setup.service failure for nowDaan De Meyer2023-05-311-0/+3
| | | | Let's make CI green again and dig into this failure later
* mkosi: Disable cmdline addon test for nowDaan De Meyer2023-05-311-2/+3
| | | | | | This fails but we didn't notice until now because error reporting from the mkosi VM was broken. Let's disable it for now to get CI green again.
* mkosi: Use proper check to detect whether we're in a VMDaan De Meyer2023-05-311-1/+1
|
* bpf: test with GCC BPF compiler on opensuseJames Hilliard2023-05-302-0/+7
|
* stub: allow loading and verifying cmdline addonsLuca Boccassi2023-05-242-0/+14
| | | | | | | | | | | | | | | | | | | | Files placed in /EFI/Linux/UKI.efi.extra.d/ and /loader/addons/ are opened and verified using the LoadImage protocol, and will thus get verified via shim/firmware. If they are valid signed PE files, the .cmdline section will be extracted and appended. If there are multiple addons in each directory, they will be parsed in alphanumerical order. Optionally the .uname sections are also matched if present, so that they can be used to filter out addons as well if needed, and only addons that correspond exactly to the UKI being loaded are used. It is recommended to also always add a .sbat section to addons, so that they can be mass-revoked with just a policy update. The files must have a .addon.efi suffix. Files in the per-UKI directory are parsed, sorted, measured and appended first. Then, files in the generic directory are processed.
* mkosi: Make sure persistent journal storage is enabledDaan De Meyer2023-05-221-0/+8
| | | | | | We ship with empty /var, so /var/log/journal does not exist, which means journald does not do persistent logging. Let's fix that by setting the config to explicitly enable persistent logging.
* mkosi: use wildcard to shorten thingsZbigniew Jędrzejewski-Szmek2023-05-181-4/+3
|
* mkosi: Drop squashfs dropinDaan De Meyer2023-05-151-2/+0
| | | | | | This accidentally got pulled into a commit even though it was only for local testing, let's drop it again so we correctly use erofs when building local images.
* mkosi: Install tmux in the final imageDaan De Meyer2023-05-151-0/+1
| | | | | | | We currently have to resort to SSH to get more than one interactive terminal in a mkosi qemu VM. Let's increase our options by installing tmux in the final image, which can multiplex the serial console into many unique terminal sessions.
* mkosi: Package a erofs usr partition with signed verityDaan De Meyer2023-05-1317-7/+66
| | | | | | | | | | | | | | Let's start moving towards a more involved partitioning setup to test our stuff more when using mkosi. The root partition is generated on boot with systemd-repart. CentOS supports neither erofs nor btrfs so we use squashfs and xfs instead. We also enable SecureBoot= locally for additional coverage. This and the use of verity means users need to run `mkosi genkey` once to generate the keys necessary to do secure boot and verity.
* mkosi: Store /etc under /usr/share/factory/mkosiDaan De Meyer2023-05-132-0/+7
| | | | | | | | | If we're making a /usr only image, we still want to populate /etc fully on first boot. To make that possible, let's copy /etc to /usr/share/factory/mkosi in a finalize script, which runs after all changes to the image have been made. Let's also add a tmpfiles snippet that merges /usr/share/factory/mkosi with /etc on boot to populate /etc.
* mkosi: Use zstd compression on non-centos distrosDaan De Meyer2023-05-123-3/+16
| | | | | Just because centos doesn't support it doesn't mean we can't use it on the other distros.
* mkosi: Only build initrd if Bootable= is enabled or set to "auto"Daan De Meyer2023-05-121-0/+3
| | | | | With this change, Bootable= can be set to "no" for a faster build intended for booting in systemd-nspawn but not qemu.
* mkosi: Use initrd symlink without format/compressionDaan De Meyer2023-05-121-1/+1
| | | | | This way, we can change the compression (and even the output format) in the future without having to modify the final preset.
* mkosi: Install apt in Debian/Ubuntu imagesDaan De Meyer2023-05-111-0/+1
|
* mkosi: Disable pamconfdirDaan De Meyer2023-05-111-0/+1
| | | | Let's use the distro's pam config instead of installing the systemd one.
* mkosi: Add back accidentally removed .gdbinit fileDaan De Meyer2023-05-111-0/+3
|
* mkosi: Enable systemd-timesyncd by defaultDaan De Meyer2023-05-111-0/+3
|
* mkosi: Disable auditd in the preset instead of masking itDaan De Meyer2023-05-111-0/+3
|
* mkosi: Disable dnf-makecache.service by defaultDaan De Meyer2023-05-111-0/+5
|
* mkosi: Make sure we use systemd-networkd-wait-onlineDaan De Meyer2023-05-111-1/+2
| | | | Disable the NetworkManager one and pull in the networkd one explicitly.
* mkosi: Replace root password setting with a credentialDaan De Meyer2023-05-111-1/+0
|
* mkosi: Disable create-log-dirs optionDaan De Meyer2023-05-111-0/+1
| | | | | | We run the build as a regular user and create-log-dirs requires to run as root so let's disable the option to avoid error noise during the install phase.
* mkosi: Stop creating test users in prepare scriptsDaan De Meyer2023-05-111-6/+0
| | | | | This was added for opensuse to make the tests pass but doesn't seem to be needed anymore after recent changes so let's drop it.
* mkosi: Don't run slow tests by defaultDaan De Meyer2023-05-111-1/+1
| | | | | Instead, allow enabling it via an environment variable and do so in CI.
* Merge pull request #27534 from keszybz/deperlifyYu Watanabe2023-05-092-2/+0
|\ | | | | Rewrite udev-test.pl in Python
| * mkosi,ci: do not install perlZbigniew Jędrzejewski-Szmek2023-05-092-2/+0
| |
* | mkosi.build: print important build commandsZbigniew Jędrzejewski-Szmek2023-05-081-4/+4
| | | | | | | | | | | | | | | | | | This undoes the effect of 1394a3ec351048bae008627a0775d1f9a6c46294 partially. We print the fairly verbose output of the build commands, so let's also print the commands themselves. This makes it much easier to understand what is going on. (The style was copied from other scripts where we do 'set -x' for one command.)
* | mkosi/fedora: silence warning about sysusers config mismatchZbigniew Jędrzejewski-Szmek2023-05-081-0/+28
| |
* | mkosi.build: use bash, use array for configuration options, shellcheckifyZbigniew Jędrzejewski-Szmek2023-05-081-96/+97
|/ | | | | With bash, we can use an array for options. This is nice because we can construct the commandline more easily. The file is now shellcheck-clean.
* Merge pull request #27262 from keszybz/ukify-installZbigniew Jędrzejewski-Szmek2023-05-062-0/+4
|\ | | | | Add kernel-install plugin that calls ukify
| * ci: install pytest-flakesZbigniew Jędrzejewski-Szmek2023-05-052-0/+4
| | | | | | | | | | | | | | | | Some web searches say that it's packaged for those distros and not the others… v2: - drop arch. https://aur.archlinux.org/packages/python-pytest-flakes exists, but installation fails in CI.
* | mkosi: Look for mkosi.kernel/ in the top level directoryDaan De Meyer2023-05-049-212/+8
| | | | | | | | | | Let's make this slightly easier to use by looking for mkosi.kernel/ in the top level directory instead of in mkosi.presets/20-final/.
* | mkosi: Use kernel-kvmsmall package on opensuseDaan De Meyer2023-05-031-1/+1
|/ | | | | Let's save on image size by using the kernel build for KVM from opensuse.
* mkosi: Switch to use mkosi presets with prebuilt initrdsDaan De Meyer2023-05-0138-0/+1266
Instead of building the initrds for the mkosi images with dracut, let's switch to using mkosi presets to build the initrd with mkosi as well. This commit splits up our single image build into three separate mkosi presets: 1. The "base" preset. This image contains systemd and all its runtime dependencies. The sole purpose of this image is to serve as a base image for the initrd and the final image. It's also responsible for building systemd from source with the build script. The results are installed into the base image. Note that we install the systemd and udev packages into this image as well to prevent package managers from overriding the systemd we built from source with the distro packaged systemd if it's pulled in as a dependency by another package from the initrd or final profiles. 2. The "initrd" preset. This image provides the initrd. It's trivial and does nothing more than packaging the base image up as a zstd compressed initramfs and adds /init and /etc/initrd-release symlinks to the image. 3. The "final" preset. This image builds on top of the base image and adds a kernel and extra packages that are useful for testing and debugging. We also split out the optional kernel build into a separate set of config files that are only included if a kernel to build is actually provided. Note that this commit doesn't really change anything about how mkosi is used. The commands remain the same, except that mkosi will now build all the presets in order. "mkosi summary" will show the summary of all the presets. "mkosi qemu, boot, shell" will always boot the final preset. With "-f", all presets will be built and the final one is booted. "-i" makes a cache of each preset. The only thing to keep in mind is that specifying config via the mkosi CLI will apply to each of the presets. e.g. any extra packages added with "-p" will be installed in both the initrd and the final image. To apply local configuration to a single preset, create a file 00-local.conf in mkosi.presets/<profile>/mkosi.conf.d and put all the preset specific configuration in there.