]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
nspawn: use --link-journal=no
authorLuca Boccassi <bluca@debian.org>
Mon, 29 Aug 2022 22:06:07 +0000 (23:06 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 30 Aug 2022 10:44:10 +0000 (12:44 +0200)
The host might not have a journal.

On a minimal qemu build image on OBS, building SUSE Tumbleweed,
linking the journal fails with:

  Failed to retrieve machine ID: No medium found

mkosi/__init__.py
mkosi/backend.py

index d113243a6cd8cf7205ac52ecdc2959a8de0f0ce6..80adaa8eb5db759e76cb12bb26d1747ab254ade0 100644 (file)
@@ -7307,6 +7307,7 @@ def run_build_script(args: MkosiArgs, root: Path, raw: Optional[BinaryIO]) -> No
             f"--uuid={args.machine_id}",
             f"--machine=mkosi-{uuid.uuid4().hex}",
             "--as-pid2",
+            "--link-journal=no",
             "--register=no",
             f"--bind={install_dir(args, root)}:/root/dest",
             f"--bind={var_tmp(root)}:/var/tmp",
index 9b0fa8cd3a1772a67a2962b7472d14627bf24a2c..b318ee591314a80aaaf15c151aa2833b52ed9b84 100644 (file)
@@ -686,6 +686,7 @@ def run_workspace_command(
         "--uuid=" + args.machine_id,
         "--machine=mkosi-" + uuid.uuid4().hex,
         "--as-pid2",
+        "--link-journal=no",
         "--register=no",
         f"--bind={var_tmp(root)}:/var/tmp",
         "--setenv=SYSTEMD_OFFLINE=1",