From accd423c3a282a389989b46b1f9730200466dffb Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Wed, 27 Mar 2024 17:54:08 +0100 Subject: [PATCH] build_library: Add mangle script for incus sysext This requests the `incus.service` for the multi-user.target Signed-off-by: Mathieu Tortuyaux --- build_library/sysext_mangle_flatcar-incus | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 build_library/sysext_mangle_flatcar-incus diff --git a/build_library/sysext_mangle_flatcar-incus b/build_library/sysext_mangle_flatcar-incus new file mode 100644 index 00000000000..b4e5ff0ec93 --- /dev/null +++ b/build_library/sysext_mangle_flatcar-incus @@ -0,0 +1,9 @@ +#!/bin/bash + +set -euo pipefail +rootfs="${1}" + +pushd "${rootfs}/usr/lib/systemd/system" +mkdir -p "multi-user.target.d" +{ echo "[Unit]"; echo "Upholds=incus.service; } > "multi-user.target.d/10-incus.conf" +popd