Skip to content

Commit 6177b57

Browse files
committed
Fix authselect call
The feature is called with-systemd-homed. Also let's assume the local profile exists and the feature exists as well.
1 parent abf698a commit 6177b57

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

mkosi.postinst.chroot

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,8 @@
33
set -e
44

55
if command -v authselect >/dev/null; then
6-
# authselect 1.5.0 renamed the minimal profile to the local profile without keeping backwards compat so
7-
# let's use the new name if it exists.
8-
if [ -d /usr/share/authselect/default/local ]; then
9-
PROFILE=local
10-
else
11-
PROFILE=minimal
12-
fi
13-
14-
authselect select "$PROFILE"
15-
16-
if authselect list-features "$PROFILE" | grep -q "with-homed"; then
17-
authselect enable-feature with-homed
18-
fi
6+
authselect select local
7+
authselect enable-feature with-systemd-homed
198
fi
209

2110
if [[ -d /etc/pam.d ]]; then

0 commit comments

Comments
 (0)