1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Daan De Meyer
5403b727a7 mkosi: Use SourceFileTransfer=mount
Our source and build directories are nicely separated, so we should
have no issues with using SourceFileTransfer=mount, since the build
won't create any files owned by root in the source directory.

(cherry picked from commit 3e139a8e64)
2022-11-08 00:09:18 +01:00
Daan De Meyer
17acdca99d mkosi: Set ExtraSearchPaths=build/ by default
When hacking on systemd, let's have mkosi prefer executables from
the build directory over the system ones.

(cherry picked from commit 06d6ea1b16)
2022-11-08 00:09:18 +01:00
Daan De Meyer
d1785c462f mkosi: Ensure we build all features/components in mkosi
Explicitly enable all features/components in the mkosi build to
ensure they all get built and we get an error if they can't be built.

We also rework the packages sections of all mkosi configs to reduce
duplication and cover all the dependencies necessary to build/use all
systemd features.

Note that for the final image, since systemd is installed by default
in base images, we rely on that to install the base library dependencies
and we only list extra optional dependencies and tools that aren't already
installed by default into the base image.

We also drop the centos stream 8 mkosi build as dependencies on that
distro are too out-of-date to be able to build all systemd features.
Since centos stream 9 has been out for a while, let's focus on that
and leave it to downstream to keep systemd building on centos stream 8.

Finally, there's a few additions to the mkosi scripts to make sure
services don't start by default on boot.

(cherry picked from commit 37d35150cb)
2022-11-08 00:09:18 +01:00
Daan De Meyer
619b36b22c mkosi: Don't use InstallDirectory by default
While this provides some marginal speedup, the disadvantage is
that files are never removed when doing cached builds, which can
sometimes lead to hard to debug issues. So let's not do this by
default.

(cherry picked from commit d808662ec0)
2022-11-08 00:09:18 +01:00
Daan De Meyer
cdf3fd312a mkosi: Use mkosi.output/ as output directory by default
Better than creating a mess of output files in the root directory.

(cherry picked from commit 670dfcb6ec)
2022-11-08 00:09:18 +01:00
Daan De Meyer
a38a0504ec mkosi: Remove usage of deprecated option names/sections
(cherry picked from commit 7ca9563ca1)
2022-11-08 00:09:18 +01:00
Daan De Meyer
47404f1802 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

(cherry picked from commit 69d638e67e)
2022-11-08 00:09:18 +01:00
Lennart Poettering
c7e445abd5 Revert "mkosi: turn off qemu headless mode"
This reverts commit a02c1239cc.

(Sorry, I pushed this directly to 'main' by accident)
2021-09-24 14:20:40 +02:00
Lennart Poettering
a02c1239cc mkosi: turn off qemu headless mode
We ship the mkosi files to make sure we can test our own code. A good
chunk of our code (and the main reason to use qemu rather than nspawn)
is the EFI code, i.e. in sd-boot and the EFI stub. Hence it's bad idea
to use qemu headless mode, since that means we bypass all that.

Let's hence toggle the defaults here, but keep the line in place, to
make it easy to switch back if someone wants the speed, rather than the
testing.
2021-09-23 17:07:13 +02:00
Daan De Meyer
79a998fa21 mkosi: Enable InstallDirectory and SourceFileTransferFinal options
- InstallDirectory caches the install part of the build process
which speeds up incremental builds a little and allows inspecting
the installed components in mkosi.installdir.
- SourceFileTransferFinal copies the source files to the final
image which makes the gdb experience in qemu/systemd-nspawn a bit
nicer as it can now find the source files and show the source code
in the gdb cli itself.
2021-01-06 23:28:34 +00:00
Daan De Meyer
6242cda99d Move shared mkosi settings to a single file in mkosi.default.d/ 2021-01-06 12:10:58 +00:00