summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Update to latestDaan De Meyer2023-10-051-0/+1
| | | | | We have to set the image runtime size explicitly now so that's it's grown a bit when we boot in nspawn or qemu.
* mkosi: Conditionally use tools treeDaan De Meyer2023-09-093-1/+15
| | | | | | | If the systemd version on the host is too old and there's no local build directory, use the default tools tree which will build an image containing all the tooling required to build systemd and use that to build the other presets.
* mkosi: Only build system preset by defaultDaan De Meyer2023-09-091-0/+3
| | | | | | | | Let's not build all presets by default, but only the system preset. Also, let's only make the system preset depend on the initrd preset if we're building a bootable disk image. This means that if we build the system image as a cpio, uki or directory, the initrd preset will be skipped as it's not necessary, making the build a little faster.
* mkosi: Move to Fedora 39Daan De Meyer2023-09-091-1/+1
|
* mkosi: Update to latestDaan De Meyer2023-09-057-8/+8
| | | | | | | | | Configuration now takes priority over CLI options so we have to configure the defaults for settings that we want to allow overriding from the CLI. We also explicitly set some other settings so that they can't be overridden from the CLI anymore. For example the base and initrd image should never be made bootable so we set Bootable=no explicitly for both.
* mkosi: Drop fedora workaroundDaan De Meyer2023-08-231-6/+0
| | | | Seems the key issues got resolved so let's drop the workaround.
* mkosi: disable key check on Fedora Rawhide for nowLuca Boccassi2023-08-121-0/+6
| | | | There are key issues so jobs are failing, disable the check for now
* Merge pull request #28401 from keszybz/set-console-sizeLuca Boccassi2023-07-151-0/+1
|\ | | | | Set console size when we reset it
| * mkosi: Set systemd.early_core_pattern=/coreDaan De Meyer2023-07-141-0/+1
| | | | | | | | This makes sure we get pid1 coredumps during early boot.
* | mkosi: Move settings to right sectionsDaan De Meyer2023-07-141-5/+5
| |
* | mkosi: Drop kernel command line arguments that are set by mkosiDaan De Meyer2023-07-141-11/+0
| | | | | | | | | | mkosi sets these by default now so let's drop them from our configuration.
* | mkosi: Update to latestDaan De Meyer2023-07-144-25/+2
|/ | | | | | | mkosi now supports CentOS SIGs natively so we drop our own definition of that and use the mkosi builtin one. We also enable hyperscale for both CentOS 8 and CentOS 9 for consistency and add epel-next as well which is a requirement for Hyperscale.
* mkosi: Enable Incremental= mode by defaultDaan De Meyer2023-06-291-0/+1
| | | | | | Since mkosi is now smart enough to drop the caches when the list of packages changes, let's enable Incremental= mode by default to ensure a good experience for anyone new to hacking on systemd with mkosi.
* mkosi: install HyperScale repository for CentOS 8Yu Watanabe2023-06-161-0/+7
| | | | Preparation for bumping meson requirement higher than 0.56.2.
* mkosi: Update to latestDaan De Meyer2023-06-131-0/+3
| | | | | | We update our configuration to replace the removed RepositoryDirectories= option with the new PackageManagerTrees= option.
* mkosi: Update to latestDaan De Meyer2023-06-071-2/+2
| | | | | mkosi's match syntax was changed so we update our config files to use the new match syntax which mimicks the systemd condition syntax.
* mkosi: Enable more optionsDaan De Meyer2023-06-021-0/+4
| | | | | | 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-0/+3
| | | | | | 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-5/+0
| | | | | This is now possible without a TMP device so let's start signing PCRs when building images with mkosi.
* mkosi: Blacklist vmw_vmci to avoid issues with vsock in Github ActionsDaan De Meyer2023-05-311-0/+2
| | | | | | If this module is loaded, sending readiness notifications from the VM will fail with "no route to host" so let's blacklist the module to prevent that from happening.
* mkosi: Always pull in network-online.targetDaan De Meyer2023-05-151-0/+3
| | | | | Let's always pull this in so that we always activate systemd-networkd-wait-online for extra coverage.
* mkosi: Package a erofs usr partition with signed verityDaan De Meyer2023-05-131-0/+7
| | | | | | | | | | | | | | 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: Do not enable ACL usage by defaultDaan De Meyer2023-05-131-1/+0
| | | | | | This is only useful to be able to remove generated files using rm -rf instead of mkosi clean and has some implications for the generated rootfs so let's not enable it by default.
* sulogin: Read SYSTEMD_SULOGIN_FORCE from kernel cmdlineDaan De Meyer2023-05-131-0/+2
| | | | | | | | This allows setting it on the kernel cmdline and having it work automatically without having to write any dropins or such. Also enable the option in mkosi so that we can debug the initrd properly with a locked root account.
* mkosi: Disable auditd in the preset instead of masking itDaan De Meyer2023-05-111-1/+0
|
* mkosi: Replace root password setting with a credentialDaan De Meyer2023-05-111-0/+2
|
* mkosi: Switch to use mkosi presets with prebuilt initrdsDaan De Meyer2023-05-0119-500/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* mkosi: add tmpfiles to create debian/ubuntu /etc/default/locale linkLuca Boccassi2023-04-241-0/+1
|
* mkosi: move debian/ubuntu ignore preset to config directoryLuca Boccassi2023-04-241-0/+1
|
* mkosi: move debian/ubuntu common conf under common directoryLuca Boccassi2023-04-241-0/+0
|
* mkosi: Update to latestDaan De Meyer2023-04-246-339/+194
| | | | | | Let's use the new support for matching against any distribution in a list of distributions to start sharing most things between the ubuntu/debian configs and centos/fedora configs.
* mkosi: remove ?priority(required) from debian pkg listLuca Boccassi2023-04-211-1/+1
| | | | | | Requires apt 2.3.10 which is not available in stable, and also doesn't seem necessary, same packages are installed anyway Add tzdata manually, as that doesn't seem to be pulled in via the CI.
* mkosi: Disable kmsg ratelimitingDaan De Meyer2023-04-201-0/+1
|
* mkosi: Update to latestDaan De Meyer2023-04-191-0/+1
|
* mkosi: Use kernel-core for Fedora and CentOS imagesDaan De Meyer2023-04-172-3/+2
| | | | Let's reduce image size by using a smaller kernel package.
* mkosi: default to Fedora 38Zbigniew Jędrzejewski-Szmek2023-04-162-2/+3
| | | | | | | | | | | | | It'll be out this week. We can't update the man pages before it is realeased, but we can use it for mkosi builds and do some very late testing. Also, use filepath specification for /bin/pkg-config. We need it for meson, and meson calls it directly by this path. pkgconfig is a virtual Provides on pkgconf-pkg-config, and the indirection here just obfuscates things with no benefit. Add it explicitly for centos too. (I think it is pulled in by packages which contain pkg-config modules anyway, but it's better to be explicit).
* mkosi: Update to latestDaan De Meyer2023-04-152-2/+2
| | | | | | mkosi now installs a "ignore *" default preset on Debian. We also switch Debian to dbus-broker now that preset doesn't disable it anymore.
* mkosi: Update to latestDaan De Meyer2023-04-137-2/+25
| | | | | The Bootable= option was removed and mkosi installs less packages by default now, so let's adapt our configs to those changes.
* mkosi: Update to latestDaan De Meyer2023-04-0710-37/+52
| | | | | | This also migrates the configuration to the new format that was just merged in mkosi. Specifically, we make use of the new [Match] sections to only include specific config snippets per distro.
* Revert "mkosi: Drop python-docutils"Daan De Meyer2023-04-056-0/+6
| | | | | | | This reverts commit be266f49d6b7e3f021e2a07f937d39d1f14a283d. Turns out we installed this because it's required by the bpf selftests so let's keep it intact.
* mkosi: Drop python-docutilsDaan De Meyer2023-03-296-6/+0
| | | | | We don't seem to use anything from python-docutils at all, so let's drop the dependency.
* mkosi: Update to latestDaan De Meyer2023-03-297-20/+26
| | | | | | | | | | | - Drop Netdev= as it was removed in mkosi - Always install python-psutil in the final image (required for networkd tests) - Always Install python-pytest in the final image (required for ukify tests) - Use the narrow glob for all centos python packages - Drop the networkd mkosi config files (the default image can be used instead) - Use ".conf" as the mkosi config file suffix everywhere - Copy src/ to /root/src in the final image and set gdb substitute path in .gdbinit to make gdb work properly
* mkosi: Update to latestDaan De Meyer2023-03-291-1/+3
| | | | | | | | | | - ACLs are not set on generated directories anymore by default, so we enable them explictly now so that when running unprivileged mkosi, the user running mkosi can remove all generated files and directories. - We don't explicitly set QemuHeadless= anymore as the option was removed and made the default. - We set the loglevel= kernel cmdline argument explicitly now as mkosi doesn't set it by default anymore.
* mkosi: Narrow glob used to install python packagesDaan De Meyer2023-03-272-3/+12
| | | | | | | | | | | | | Let's make sure we only install the python3 and python39 python packages, instead of all the packages of all versions that are packaged. This also fixes the CentOS 8 CI because python3.11-pytest was failing to install. We have to ship our own powertools repo definition because we need to enable module_hotfixes for powertools to coerce dnf into installing some of the python packages.
* mkosi: Default to debug log level for udev as wellDaan De Meyer2023-03-211-3/+0
| | | | | Unlike CI, the debug output just goes to the journal, so there's no harm in enabling it, even if it's noisy.
* mkosi: Enable some debugging options by defaultDaan De Meyer2023-03-171-0/+8
|
* ci: Adjust for new EFI buildJan Janssen2023-03-106-0/+6
|
* tree-wide: Drop gnu-efiJan Janssen2023-03-103-3/+0
| | | | | | | This drops all mentions of gnu-efi and its manual build machinery. A future commit will bring bootloader builds back. A new bootloader meson option is now used to control whether to build sd-boot and its userspace tooling.
* mkosi: Install dnf on centos and fedoraDaan De Meyer2023-03-052-0/+2
| | | | | dnf is not installed by default anymore, but it's still useful to have in our images, so let's install it explicitly.
* mkosi: add some really basic tools to default mkosi imageLennart Poettering2023-02-286-0/+11
| | | | | | "passwd" and "pscap" are extremely useful to debug basic OS behaviour, and tiny. So let's add them to our default development images, just to save us some headaches.