feat(zbm): Prepare SSH in ZBM (#6)
This commit is contained in:
parent
1690518197
commit
b160b4a1e1
7
setup.sh
7
setup.sh
@ -841,9 +841,16 @@ function we_want_ssh () {
|
||||
|
||||
function configure_ssh_in_zbm () {
|
||||
#2.11
|
||||
get_dropbear_hooks
|
||||
customize_dropbear_hooks
|
||||
paru_install 'mkinitcpio-nfs-utils' 'dropbear' 'mkinitcpio-dropbear'
|
||||
in_file_in_array_insert_n_at_the_end '/etc/zfsbootmenu/mkinitcpio.conf' 'HOOKS' 'net'
|
||||
in_file_in_array_insert_n_at_the_end '/etc/zfsbootmenu/mkinitcpio.conf' 'HOOKS' 'dropbear'
|
||||
for key_type in 'dss' 'ecdsa' 'ed25519' 'rsa'; do
|
||||
dropbearkey -t "${key_type}" -f '/etc/dropbear/dropbear_'"${key_type}"'_host_key'
|
||||
done
|
||||
set_pub_keys '/etc/dropbear/root_key' "${ARCHZBM_SSH_AUTH_KEYS}"
|
||||
ensure_ip_in_kcl
|
||||
}
|
||||
|
||||
function add_syslinux_pacman_hook () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user