Skip to content

Instantly share code, notes, and snippets.

@Miesvanderlippe
Created May 1, 2020 12:19
Show Gist options
  • Save Miesvanderlippe/d195df2d9755b5a9c48a4ae551e53ce5 to your computer and use it in GitHub Desktop.
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
#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
@Trolldemorted
Copy link

works like a charm for ubuntu24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment