diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-07-15 02:26:52 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-07-18 16:54:56 +0200 |
commit | 69d638e67e5bfc5fedcae4072f144a4f7d798c9a (patch) | |
tree | 7609b870b6116e04516fb3bb2901d9f64e65434c /mkosi.default.d/10-systemd.conf | |
parent | 111ff5d5115cb2f49aba59da5dbdf96a28d0974d (diff) | |
download | systemd-69d638e67e5bfc5fedcae4072f144a4f7d798c9a.tar.gz |
mkosi: Changes to allow booting with sanitizers in mkosi
- Extra memory because ASAN needs it
- The environment variables to make the sanitizers more useful
- LD_PRELOAD because the ASAN DSO needs to be the first in the list
- The sanitizer library packages
- Disable syscall filters because they interfere with ASAN
- Disable systemd-hwdb-update because it's super slow when systemd-hwdb
is built with sanitizers
- Take the value for meson's b_sanitize option from the SANITIZERS
environment variable
Diffstat (limited to 'mkosi.default.d/10-systemd.conf')
-rw-r--r-- | mkosi.default.d/10-systemd.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mkosi.default.d/10-systemd.conf b/mkosi.default.d/10-systemd.conf index 08a03f489b..24b85ddd0b 100644 --- a/mkosi.default.d/10-systemd.conf +++ b/mkosi.default.d/10-systemd.conf @@ -6,6 +6,8 @@ Format=gpt_btrfs Bootable=yes HostonlyInitrd=yes +# Prevent ASAN warnings when building the image +Environment=ASAN_OPTIONS=verify_asan_link_order=false [Packages] BuildDirectory=mkosi.builddir @@ -16,6 +18,7 @@ SourceFileTransferFinal=copy-git-others [Host] QemuHeadless=yes NetworkVeth=yes +QemuMem=2G [Validation] Password= |