mwhudson / livefs-editor

GNU General Public License v3.0
68 stars 31 forks source link

question about enabling cloud-init with u18.04 #31

Open parmentelat opened 1 year ago

parmentelat commented 1 year ago

hiya

I'm trying to create custom bootcd's from ubuntus 18 20 and 22 that I could use as live-only boot supports I've been kind of successful with 20 and 22 so far, using a hand-made shell script of my own brew - before I stumbled onto this repo which I will probably leverage as it's much cleaner than my own stuff :)

regardless, my approach was working fine with 20 and 22, but fails to work with 18 and I am suspecting the presence of /etc/cloud/cloud-init.disabled to be the root problem

to be more specific:

so I guess I have 3 questions

  1. am I right to suspect the presence of this file to be the root cause of my problem ?
  2. can I use livefs-editor to remove that file in /etc/ ?
  3. more generally, I've taken good note of your disclaimer in the readme :), but in your experience, is it safe to consider editing an image as old as u18.04 with livefs-editor ?

thanks !

parmentelat commented 1 year ago

as a side note to self, after boot with the u18 image only minimally modified, I can see this

parmentelat commented 1 year ago

as a second note, I got an insight on the cloud-init irc libera channel, where I learned that:

providing the extended kernel params after --- cloud-init=enabled will enable cloud-init in BIonic's ephemeral boot stage

so this answers my questions 1 and 2. I guess :) I'm still interested to hear your thoughts about question3, particularly wrt https://discourse.ubuntu.com/t/cloud-init-and-the-live-server-installer/14597 where you announced a change in the u20 installer chain...

encbladexp commented 1 year ago

18.04 is deprecated in a few weeks, right?