Created
May 1, 2020 12:19
-
-
Save Miesvanderlippe/d195df2d9755b5a9c48a4ae551e53ce5 to your computer and use it in GitHub Desktop.
Hack to enable true auto-install for Ubuntu 20.04 with cloud-init nocloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
runcmd: | |
- [eval, 'echo $(cat /proc/cmdline) "autoinstall" > /root/cmdline'] | |
- [eval, 'mount -n --bind -o ro /root/cmdline /proc/cmdline'] | |
- [eval, 'snap restart subiquity.subiquity-service'] | |
autoinstall: | |
version: 1 | |
identity: | |
hostname: hack-nation | |
username: superb-hacker | |
password: $hashed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you SO much for this hack... works like a charm for me with Ubuntu 20.04. It needs to be tweaked as follows for Ubuntu 22.04:
That is, one first has to restart the subiquity-server before restarting subiquity-service, otherwise the 'autoinstall' added to /proc/cmdline won't be read. Thanks again.