2021-01-03 15:05:06 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
|
2023-11-28 17:38:22 +00:00
|
|
|
[Config]
|
2024-04-05 16:19:59 +00:00
|
|
|
@Images=system
|
2024-04-14 17:53:09 +00:00
|
|
|
MinimumVersion=23~devel
|
2023-09-09 08:20:01 +00:00
|
|
|
|
2021-01-03 15:05:06 +00:00
|
|
|
[Output]
|
2024-04-19 07:17:58 +00:00
|
|
|
@OutputDirectory=build/mkosi.output
|
|
|
|
@BuildDirectory=build/mkosi.builddir
|
|
|
|
@CacheDirectory=build/mkosi.cache
|
2023-07-14 12:52:58 +00:00
|
|
|
|
|
|
|
[Content]
|
2024-05-16 15:18:38 +00:00
|
|
|
# The kernel versions in CentOS Stream 9 and Ubuntu 22.04 don't support orphan_file, but later
|
|
|
|
# versions of mkfs.ext4 enabled it by default, so we disable it explicitly.
|
|
|
|
Environment=SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"
|
2024-01-25 21:48:55 +00:00
|
|
|
@SELinuxRelabel=no
|
2024-03-08 18:12:16 +00:00
|
|
|
BuildSourcesEphemeral=yes
|
2021-01-03 15:05:06 +00:00
|
|
|
|
2024-05-31 15:26:01 +00:00
|
|
|
# Adding more kernel command line arguments is likely to hit the kernel command line limit (512 bytes) in
|
|
|
|
# various scenarios. Consider adding support for a credential instead if possible and using that.
|
2024-04-19 11:25:31 +00:00
|
|
|
KernelCommandLine=systemd.crash_shell
|
|
|
|
systemd.log_level=debug,console:info
|
|
|
|
systemd.log_ratelimit_kmsg=0
|
|
|
|
# Disable the kernel's ratelimiting on userspace logging to kmsg.
|
|
|
|
printk.devkmsg=on
|
|
|
|
# Make sure /sysroot is mounted rw in the initrd.
|
|
|
|
rw
|
|
|
|
# Lower the default device timeout so we get a shell earlier if the root device does
|
|
|
|
# not appear for some reason.
|
2024-05-31 08:25:08 +00:00
|
|
|
systemd.default_device_timeout_sec=30
|
2024-04-19 11:25:31 +00:00
|
|
|
# Make sure no LSMs are enabled by default.
|
|
|
|
apparmor=0
|
|
|
|
selinux=0
|
|
|
|
enforcing=0
|
|
|
|
systemd.early_core_pattern=/core
|
|
|
|
systemd.firstboot=no
|
2024-05-09 07:56:06 +00:00
|
|
|
raid=noautodetect
|
2024-05-09 07:57:12 +00:00
|
|
|
oops=panic
|
|
|
|
panic=-1
|
|
|
|
softlockup_panic=1
|
|
|
|
panic_on_warn=1
|
2024-05-14 07:11:51 +00:00
|
|
|
# These don't ship proper units with [Install] directives so we have to mask them instead.
|
|
|
|
systemd.mask=isc-dhcp-server.service
|
|
|
|
systemd.mask=mdmonitor.service
|
2024-04-19 11:25:31 +00:00
|
|
|
|
2021-01-03 15:05:06 +00:00
|
|
|
[Host]
|
2024-04-30 12:29:14 +00:00
|
|
|
Credentials=journal.storage=persistent
|
2023-09-01 11:58:16 +00:00
|
|
|
@Incremental=yes
|
2024-04-15 20:28:11 +00:00
|
|
|
@RuntimeBuildSources=yes
|
2024-06-05 15:51:57 +00:00
|
|
|
@RuntimeScratch=no
|
2024-04-05 16:19:59 +00:00
|
|
|
@QemuSmp=2
|
2024-05-03 12:15:55 +00:00
|
|
|
@QemuSwtpm=yes
|
|
|
|
@QemuVsock=yes
|
|
|
|
@QemuKvm=yes
|
2023-12-07 18:52:41 +00:00
|
|
|
ToolsTreePackages=virtiofsd
|