Can anyone tell me, if this is a script that needs to be created or are these commands that need to be entered?
Now, I do know that some are commands. I have no idea what the rest are. And do I enter these from the MaaS server?
sudo apt-get install --assume-yes bzr
bzr branch lp:~maas-maintainers/maas/backdoor-image backdoor-image
imgs=$(echo /var/lib/maas/boot-resources/*/*/*/*/*/root-image)
for img in $imgs; do
[ -f "$img.dist" ] || cp -a --sparse=always $img $img.dist
done
for img in $imgs; do
sudo ./backdoor-image/backdoor-image -v --user=backdoor --password-auth --password=ubuntu $img
done