aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/50-firstboot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.d/50-firstboot.sh')
-rw-r--r--bootstrap.d/50-firstboot.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bootstrap.d/50-firstboot.sh b/bootstrap.d/50-firstboot.sh
index 0c93d11..2ec9404 100644
--- a/bootstrap.d/50-firstboot.sh
+++ b/bootstrap.d/50-firstboot.sh
@@ -9,9 +9,8 @@
cat files/firstboot/10-begin.sh > "$R/etc/rc.firstboot"
# Ensure openssh server host keys are regenerated on first boot
-if [ "$ENABLE_SSHD" = true ] && [ "$ENABLE_REDUCE" = false ]; then
+if [ "$ENABLE_SSHD" = true ] ; then
cat files/firstboot/21-generate-ssh-keys.sh >> "$R/etc/rc.firstboot"
- rm -f "$R/etc/ssh/ssh_host_*"
fi
# Prepare filesystem auto expand