mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
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.
This commit is contained in:
parent
2f39220e7c
commit
fe42438427
@ -67,3 +67,11 @@ fi
|
|||||||
if grep -q -e "ID=debian" -e "ID_LIKE=debian" /etc/os-release; then
|
if grep -q -e "ID=debian" -e "ID_LIKE=debian" /etc/os-release; then
|
||||||
echo "ignore *" >/usr/lib/systemd/system-preset/99-ignore.preset
|
echo "ignore *" >/usr/lib/systemd/system-preset/99-ignore.preset
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user