Skip to content

Commit

Permalink
fix: fix recipes for Bookworm-based releases
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Nov 17, 2023
1 parent 0ce8cd0 commit 11eb988
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion recipes/pi-cleanup/steps/00-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ set -euo pipefail
export DEBIAN_FRONTEND=noninteractive

systemctl disable userconfig
systemctl disable unattended-upgrades.service
systemctl disable resize2fs_once

# Only exists on older (Debuan Buster) releases.
systemctl disable unattended-upgrades.service || true

# Only exists on newer (Debian Bookworm) releases.
systemctl disable sshswitch.service || true

apt-get purge -y userconf-pi
rm -f /etc/ssh/sshd_config.d/rename_user.conf
2 changes: 0 additions & 2 deletions recipes/ssh/files/hydrate-ssh-host-keys.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[Unit]
Description=Hydrate SSH Host Keys
Before=ssh.service
ConditionPathIsReadWrite=/run/rugpi/state/ssh
ConditionFileIsExecutable=/usr/bin/ssh-keygen

[Service]
Type=oneshot
Expand Down

0 comments on commit 11eb988

Please sign in to comment.