2021-01-03 16:05:06 +01:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2023-11-28 18:38:22 +01:00
[Config]
2024-04-05 17:19:59 +01:00
@Images=system
2024-04-14 19:53:09 +02:00
MinimumVersion=23~devel
2023-09-09 10:20:01 +02:00
2021-01-03 16:05:06 +01:00
[Output]
2024-04-19 09:17:58 +02:00
@OutputDirectory=build/mkosi.output
@BuildDirectory=build/mkosi.builddir
@CacheDirectory=build/mkosi.cache
2023-07-14 14:52:58 +02:00
[Content]
2023-02-21 15:09:38 +01:00
# Prevent ASAN warnings when building the image and ship the real ASAN options prefixed with MKOSI_.
2022-07-15 02:26:52 +02:00
Environment=ASAN_OPTIONS=verify_asan_link_order=false
2023-02-21 15:09:38 +01:00
MKOSI_ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:disable_coredump=0:use_madv_dontdump=1
MKOSI_UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1
2024-01-25 22:48:55 +01:00
@SELinuxRelabel=no
2024-03-08 19:12:16 +01:00
BuildSourcesEphemeral=yes
2021-01-03 16:05:06 +01:00
2024-04-19 13:25:31 +02: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.
systemd.default_device_timeout_sec=20
# Make sure no LSMs are enabled by default.
apparmor=0
selinux=0
enforcing=0
systemd.early_core_pattern=/core
systemd.firstboot=no
systemd.setenv=SYSTEMD_ENABLE_LOG_CONTEXT=yes
SYSTEMD_ENABLE_LOG_CONTEXT=yes
2024-05-09 09:56:06 +02:00
raid=noautodetect
2024-05-09 09:57:12 +02:00
oops=panic
panic=-1
softlockup_panic=1
panic_on_warn=1
2024-05-14 09:11:51 +02: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 13:25:31 +02:00
2021-01-03 16:05:06 +01:00
[Host]
2024-04-30 14:29:14 +02:00
Credentials=journal.storage=persistent
2023-09-01 13:58:16 +02:00
@Incremental=yes
2024-04-15 22:28:11 +02:00
@RuntimeBuildSources=yes
2024-04-05 17:19:59 +01:00
@QemuSmp=2
2024-05-03 14:15:55 +02:00
@QemuSwtpm=yes
@QemuVsock=yes
@QemuKvm=yes
2023-12-07 19:52:41 +01:00
ToolsTreePackages=virtiofsd