Skip to content

Commit 3e583a5

Browse files
committed
Handle lack of policykit-1 in Debian Trixie #260
1 parent 0f05cda commit 3e583a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/modules/disable-services/start_chroot_script

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ source /common.sh
1010
install_cleanup_trap
1111

1212
apt_update_skip
13-
if [ $( is_in_apt policykit-1 ) -eq 1 ]; then
14-
apt-get -y install policykit-1
13+
if [ $( is_in_apt polkitd ) -eq 1 ]; then
14+
apt-get -y install polkitd
1515
fi
16+
if [ $( is_in_apt pkexec ) -eq 1 ]; then
17+
apt-get -y install pkexec
18+
fi
19+
1620

1721
# prevent any installed services from automatically starting
1822
echo exit 101 > /usr/sbin/policy-rc.d

0 commit comments

Comments
 (0)