fix: lets tty1 wait for cloud-init to finish
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-09 11:05:49 +02:00
parent 1f5f4b3685
commit dc18b4fae7
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -142,6 +142,12 @@ EOF
cat >/etc/cloud/cloud.cfg.d/93-proxmox.cfg <<EOF cat >/etc/cloud/cloud.cfg.d/93-proxmox.cfg <<EOF
${files_proxmox_init} ${files_proxmox_init}
EOF EOF
mkdir -p /etc/systemd/system/getty@tty1.service.d
cat >/etc/systemd/system/getty@tty1.service.d/override.conf <<EOF
[Unit]
After=cloud-init.target
EOF
echo "Completed cloud-init step!" echo "Completed cloud-init step!"
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config