summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-20 10:13:37 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-21 14:05:32 +0200
commitfe42438427730f39d85f7bf52c5312a9c5c04bcb (patch)
treefa6255d3ce01a9ffa8c8ed77c486673eba6632ca
parent2f39220e7c0afe5fdf484bccca994e8c37ad09cd (diff)
downloadsystemd-fe42438427730f39d85f7bf52c5312a9c5c04bcb.tar.gz
mkosi: Use authselect minimal if authselect is installed
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.
-rwxr-xr-xmkosi.postinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkosi.postinst b/mkosi.postinst
index 24b4666ad7..a71878b939 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -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