1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00

sys-kernel/dracut-openssh: bump to 0.2

This commit is contained in:
2020-05-16 14:09:41 +02:00
parent c6e7bee7f2
commit bdd91136df
7 changed files with 35 additions and 15 deletions

View File

@@ -9,7 +9,10 @@
#ed25519_host_key="/etc/ssh/ssh_host_ed25519_key"
#rsa_host_key="/etc/ssh/ssh_host_rsa_key"
#
# network_provider can be network systemd-networkd or auto
# select network provider
# auto: autodetect network provider
# systemd-networkd: systemd network provider
# network: dracut default provider
#network_provider="auto"
#
#systemd_networkd_files="/etc/systemd/network/*"

View File

@@ -1,14 +1,6 @@
#!/bin/bash
# called by dracut
check() {
#check for sshd
require_binaries sshd || return 1
return 0
}
depends() {
net_provider() {
[ -z ${network_provider} ] && network_provider="auto"
if [ "${network_provider}" = "auto" ]; then
@@ -20,9 +12,23 @@ depends() {
fi
echo ${network_provider}
}
# called by dracut
check() {
#check for sshd
require_binaries sshd || return 1
return 0
}
# called by dracut
depends() {
echo $(net_provider)
return 0
}
# called by dracut
install() {
[ -z ${authorized_keys} ] && authorized_keys="/root/.ssh/authorized_keys"
[ -z ${sshd_opts} ] && sshd_opts="-e -p 22"
@@ -45,6 +51,7 @@ install() {
done
inst_simple "${moddir}/sshd_config" /etc/ssh/sshd_config
inst_simple "${moddir}/sshd-banner" /etc/ssh/sshd-banner
inst_simple "$(which sshd)"
inst_simple "${moddir}/sshd.service" ${systemdsystemunitdir}/sshd.service
@@ -69,7 +76,7 @@ install() {
touch "${initdir}/var/log/lastlog"
local nf
if [ "${network_provider}" = "systemd-networkd" ]; then
if [ "$(net_provider)" = "systemd-networkd" ]; then
for nf in ${systemd_networkd_files}; do
inst_simple "${nf}"
done

View File

@@ -0,0 +1,2 @@
To unlock LUKS volume type "systemd-tty-ask-password-agent" command.

View File

@@ -4,6 +4,7 @@ AuthorizedKeysFile .ssh/authorized_keys
AuthenticationMethods publickey
UsePAM no
X11Forwarding no
Banner /etc/ssh/sshd-banner
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT