#!/usr/bin/env bash apt-get remove --purge snap* lxc* lxd* || true sed -i 's/\(GRUB_CMDLINE_LINUX_DEFAULT=\).*/\1\"\"/g' /target/etc/default/grub update-grub sed -i '/PermitRootLogin / s/ .*/ yes/' /etc/ssh/sshd_config mkdir -p /root/.ssh chmod 0700 /root/.ssh echo "{{ tftp_ssh_key }}" >> /root/.ssh/authorized_keys /opt/vm-post-network-script.sh