V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m58s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-31 17:57:38 +02:00
parent 2c77a6e59b
commit 2d996fd456
3 changed files with 30 additions and 5 deletions

View File

@@ -51,6 +51,27 @@ dropbear_initramfs() {
do_log "debug" "file_only" "4311() Installation [${var_file}] successful."
done
insert_header "${TARGET}/etc/apt/preferences.d/99-prefer-openssh"
insert_comments "${TARGET}/etc/apt/preferences.d/99-prefer-openssh"
cat << EOF >> "${TARGET}/etc/apt/preferences.d/99-prefer-openssh"
# Prevent the dropbear *daemon* from being installed at all.
# DO NOT block dropbear-bin — needed by dropbear-initramfs.
Package: dropbear
Pin: release *
Pin-Priority: -1
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=conf
EOF
chroot_script "${TARGET}" "
systemctl mask dropbear.service dropbear.socket
"
do_log "info" "file_only" "4133() Masked: [dropbear.service dropbear.socket]"
guard_dir && return 0
}
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh