=== TheCaptain8983 is now known as TheCaptain898 [14:36] Hi [14:36] I playing around with automated installation of an ubuntu-server (24.04) via a "user-data" file which is stored on the install CD. I have a list of packages which should be installed listed in the "packages:" section. [14:36] In the installer itself every package will be installed by starting a chroot, install one package and close the chroot. This loops over the complete list and takes forever because there is so much overhead. Is there a way to install all the packages in one bulk command? [14:36] Does anyone know what scripts does ubuntu run when installing a new kernel version that triggers the changing of the /boot/vmlinuz + initrd.img symlinks? [14:37] I've installed an older kernel than my current running one, and it set up the symlinks (and I'm guessing other defaults) for the older version, which is not something I want [14:38] and the only info I can find online is about how to make grub boot it by editing the configs, which is not something I want to do right now [14:38] znf: i think "/etc/kernel/postinst.d/xx-update-initrd-links" [14:42] mkay, that worked [14:43] thanks [15:29] yogg: this is related to subiquity and I can see what you are saying w.r.t. one operation per package in list in the ephemeral boot environment due to it's interaction w/ curtin to install in the chroot here https://github.com/canonical/subiquity/blob/main/subiquity/server/controllers/install.py#L689-L725. Not certain offhand if there is a way to batch those pkgs download through the Ubuntu installer(subiquity) packages: [15:31] yogg: but I know the ubuntu installer allows for passing user-data to cloud-init on "first boot" after the installer exits by passing "autoinstall:\n user-data:\n packages: [pkg1, pkg2]" that would allow cloud-init on first boot to batch the installed packages during that first boot (if those packages don't contain required config/services that are required on first boot [15:33] *correction: if those packages don't deliver systemd services that are needed early in first boot of the installed system. [15:42] blackboxsw: thx, I do now a "late-command" and install most of the packages there. Not super pretty works ^^ [15:43] yeah, that's an option too. I'd await a subiquity person (I'm cloud-init; like falco-jr) for alternative suggestions if there are some [15:51] One thing that I could not find out yet. Ubuntu "autoinstall" uses nearly the same config as cloud-init as I see and everywhere it is called cloud-init. But it is not cloud-init? Its only similar? [16:14] yogg: Indeed. Autoinstall is just another yaml config, which is often delivered by cloud-config, but they are distint. [16:14] https://canonical-subiquity.readthedocs-hosted.com/en/latest/explanation/cloudinit-autoinstall-interaction.html [16:15] s/distint/distinct === patrick_ is now known as patrick === JanC is now known as Guest3954