From 0d9c036b1c3704c9c55c457852a699be56244fd5 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 1 Oct 2026 09:03:25 +0200 Subject: [PATCH] to-disk: Ensure that swap unit is started This moves the enable-swap dependency dropin from default.target to basic.target, because otherwise swap will not be used in the to-disk case. Signed-off-by: Alexander Larsson --- crates/kit/src/run_ephemeral.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/kit/src/run_ephemeral.rs b/crates/kit/src/run_ephemeral.rs index 1c1eedad1..32c903874 100644 --- a/crates/kit/src/run_ephemeral.rs +++ b/crates/kit/src/run_ephemeral.rs @@ -1889,7 +1889,7 @@ Options= let swap_dropin = format!("[Unit]\nWants={service_name}\n"); let encoded_dropin = data_encoding::BASE64.encode(swap_dropin.as_bytes()); let dropin_cred = format!( - "io.systemd.credential.binary:systemd.unit-dropin.default.target~bcvk-swap={encoded_dropin}" + "io.systemd.credential.binary:systemd.unit-dropin.basic.target~bcvk-swap={encoded_dropin}" ); mount_unit_smbios_creds.push(dropin_cred); debug!("Generated SMBIOS credential for swap unit");