ref: c6d2818c536940c4e3f254009beb6d5426e2519c
parent: 64be7028a529d940f81fda31a8e1dfa2281e4989
author: Natanael Copa <ncopa@alpinelinux.org>
date: Tue Jun 12 10:02:08 CDT 2018
init: remove ssh_pass and make sure to start sshd ssh_pass is not recommended and causes some issues in firstboot. We remove support for it to keep things simple. also make sure that sshd is started if ssh_key is set
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -286,7 +286,7 @@
myopts="alpine_dev autodetect autoraid chart cryptroot cryptdm cryptheader cryptoffset
cryptdiscards debug_init dma init_args keep_apk_new modules ovl_dev pkgs quiet
root_size root usbdelay ip alpine_repo apkovl alpine_start splash blacklist
- overlaytmpfs rootfstype rootflags nbd resume s390x_net dasd ssh_key ssh_pass"
+ overlaytmpfs rootfstype rootflags nbd resume s390x_net dasd ssh_key"
for opt; do
case "$opt" in
@@ -642,8 +642,9 @@
fi
# add openssh
-if [ -n "$KOPT_ssh_key" ] || [ -n "$KOPT_ssh_pass" ]; then
+if [ -n "$KOPT_ssh_key" ]; then
pkgs="$pkgs openssh"
+ rc_add sshd default
fi
# add wget if using secure urls in cmdline