]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use authselect minimal if authselect is installed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Apr 2023 08:13:37 +0000 (10:13 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 21 Apr 2023 12:05:32 +0000 (14:05 +0200)
We dropped this logic from mkosi itself, so let's configure it in
our postinst script instead. We also enable the with-homed feature
if we can find it. It doesn't exist for the minimal profile yet,
but might be added in the future.

mkosi.postinst

index 24b4666ad71f592f6154fe6a70f5a2dc26caca5e..a71878b9397792b5955bdeee0e045b7dda5168a7 100755 (executable)
@@ -67,3 +67,11 @@ fi
 if grep -q -e "ID=debian" -e "ID_LIKE=debian" /etc/os-release; then
     echo "ignore *" >/usr/lib/systemd/system-preset/99-ignore.preset
 fi
+
+if command -v authselect >/dev/null; then
+    authselect select minimal
+
+    if authselect list-features minimal | grep -q "with-homed"; then
+        authselect enable-feature with-homed
+    fi
+fi