diff --git a/templates/prep-scripts/nspawn_centos_prep.sh.j2 b/templates/prep-scripts/nspawn_centos_prep.sh.j2 index 861b752..f143809 100644 --- a/templates/prep-scripts/nspawn_centos_prep.sh.j2 +++ b/templates/prep-scripts/nspawn_centos_prep.sh.j2 @@ -38,7 +38,7 @@ rm -f /tmp/package-transaction.txt rm -f /usr/bin/python || true ln -s /usr/bin/python2.7 /usr/bin/python -for action in disable mask; do +for action in disable; do systemctl ${action} sshd.service || true done diff --git a/templates/prep-scripts/nspawn_opensuse_prep.sh.j2 b/templates/prep-scripts/nspawn_opensuse_prep.sh.j2 index 90d5bf2..dbce150 100644 --- a/templates/prep-scripts/nspawn_opensuse_prep.sh.j2 +++ b/templates/prep-scripts/nspawn_opensuse_prep.sh.j2 @@ -39,7 +39,7 @@ zypper --gpg-auto-import-keys -n in --force-resolution -l {{ (nspawn_container_d rm -f /usr/bin/python || true ln -s /usr/bin/python2.7 /usr/bin/python -for action in disable mask; do +for action in disable; do systemctl ${action} wicked.service || true systemctl ${action} wickedd.service || true systemctl ${action} wickedd-auto4.service || true diff --git a/templates/prep-scripts/nspawn_ubuntu_prep.sh.j2 b/templates/prep-scripts/nspawn_ubuntu_prep.sh.j2 index 5f88652..90a5425 100644 --- a/templates/prep-scripts/nspawn_ubuntu_prep.sh.j2 +++ b/templates/prep-scripts/nspawn_ubuntu_prep.sh.j2 @@ -38,11 +38,11 @@ rm /var/cache/apt/archives/lock || true rm -f /usr/bin/python || true ln -s /usr/bin/python2.7 /usr/bin/python -for action in disable mask; do +for action in disable; do systemctl ${action} resolvconf.service || true systemctl ${action} systemd-networkd-resolvconf-update.path || true systemctl ${action} systemd-networkd-resolvconf-update.service || true - systemctl ${action} sshd.service || true + systemctl ${action} ssh.service || true done systemctl enable systemd-hostnamed.service