I have a working autoinstall.yaml script that repartitions a drive to preserve windows, for a dual-boot system. The script works fine when livebooting Ubuntu 24.04 and targeting the autoinstall file.
I’ve copied the content into “user-data” and touched a “meta-data” file. Then attempted to enter various iterations of this in Cloud-init user-data to deploy on a new system.
Everything i enter here results in the installation proceeding while completely ignoring my user-data file and configurations. As you can imagine, this is terribly painful as it wipes out the Windows installation & I have to start over cloning the system back.
(in all cases, the user-data & meta-data file are reachable in the root of those urls)
What am I doing wrong?
And why doesn’t MAAS give some kind of error or notification that the cloud-init line is either misconfigured or incorrect or it can’t find the user-data files or sommmmething other than proceeding blindly forward?
I already worked out an autoinstall.yaml that does the job.
And the way I understand it, that file can be targeted in kernel parameters on a custom image in MAAS,
OR the autoinstall.yaml can be rewritten using curtin parameters that adhere to the cloud init scripts being asked for.
If anyone else here knows the best way to do it, and/or can help with putting my autoinstall.yaml to work in MAAS deploy - pls lmk.
*Aside, for anyone that finds this post looking to run an automatic installation for DUAL-Boot on a disk with Windows pre-installed - my script above works great. The only piece missing up there is “partition_type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7”
Make sure you add that line to the existing Windows partition, or Windows won’t be able to recognize it. So that part looks like this: