1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-07 00:42:37 +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

@@ -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