From: Daan De Meyer Date: Thu, 3 Apr 2025 14:37:56 +0000 (+0200) Subject: docs: Make sure we run mkosi genkey before everything else X-Git-Tag: v258-rc1~919^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0298ddb881672de7c208a073b1ac69d99c2d2612;p=thirdparty%2Fsystemd.git docs: Make sure we run mkosi genkey before everything else Otherwise other commands might fail saying the keys don't exist yet. --- diff --git a/docs/HACKING.md b/docs/HACKING.md index c076aa303bf..85adca5974e 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -39,6 +39,7 @@ chance that your distribution's packaged version of mkosi will be too old. Then, you can build, run and test systemd executables as follows: ```sh +$ mkosi -f genkey # Generate signing keys once. $ mkosi -f sandbox -- meson setup -Dbpf-framework=disabled build # bpftool detection inside mkosi sandbox is broken on Ubuntu Noble and older $ mkosi -f sandbox -- meson compile -C build $ mkosi -f sandbox -- build/systemctl --version @@ -48,7 +49,6 @@ $ mkosi -f sandbox -- meson test -C build # Run the unit tests To build and boot an OS image with the latest systemd installed: ```sh -$ mkosi -f genkey # Generate signing keys once. $ mkosi -f sandbox -- meson compile -C build mkosi # (re-)build the OS image $ mkosi boot # Boot the image with systemd-nspawn. $ mkosi vm # Boot the image with qemu. @@ -64,8 +64,8 @@ $ git clone https://github.com/systemd/systemd.git $ cd systemd $ git checkout -b # where BRANCH is the name of the branch $ $EDITOR src/core/main.c # or wherever you'd like to make your changes -$ mkosi -f sandbox -- meson setup build # Set up meson $ mkosi -f genkey # Generate signing keys once. +$ mkosi -f sandbox -- meson setup build # Set up meson $ mkosi -f sandbox -- meson compile -C build mkosi # (re-)build the test image $ mkosi vm # Boot the image in qemu $ git add -p # interactively put together your patch diff --git a/test/integration-tests/standalone/meson.build b/test/integration-tests/standalone/meson.build index 76d11afcec9..1b446ebe2d9 100644 --- a/test/integration-tests/standalone/meson.build +++ b/test/integration-tests/standalone/meson.build @@ -3,8 +3,8 @@ # This meson file can be used to run the integration tests without having to install any other dependencies # as follows: # -# mkosi -f sandbox -- meson setup testsuite test/integration-tests/standalone # mkosi genkey +# mkosi -f sandbox -- meson setup testsuite test/integration-tests/standalone # mkosi -f # mkosi sandbox -- meson test -C testsuite #