V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m58s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user