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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.d/50-firstboot.sh b/bootstrap.d/50-firstboot.sh
index 4892c4b..0c93d11 100644
--- a/bootstrap.d/50-firstboot.sh
+++ b/bootstrap.d/50-firstboot.sh
@@ -9,7 +9,7 @@
cat files/firstboot/10-begin.sh > "$R/etc/rc.firstboot"
# Ensure openssh server host keys are regenerated on first boot
-if [ "$ENABLE_SSHD" = true ] ; then
+if [ "$ENABLE_SSHD" = true ] && [ "$ENABLE_REDUCE" = false ]; then
cat files/firstboot/21-generate-ssh-keys.sh >> "$R/etc/rc.firstboot"
rm -f "$R/etc/ssh/ssh_host_*"
fi