/srv/irclogs.ubuntu.com/2024/07/10/#ubuntu-server.txt

=== TheCaptain8983 is now known as TheCaptain898
yoggHi14:36
yoggI 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
yoggIn 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
znfDoes 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:36
znfI'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:37
znfand 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 now14:38
yoggznf: i think "/etc/kernel/postinst.d/xx-update-initrd-links"14:38
znfmkay, that worked14:42
znfthanks14:43
blackboxswyogg: 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:29
blackboxswyogg: 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 boot15:31
blackboxsw*correction: if those packages don't deliver systemd services that are needed early in first boot of the installed system.15:33
yoggblackboxsw: thx, I do now a "late-command" and install most of the packages there. Not super pretty works ^^15:42
blackboxswyeah, that's an option too. I'd await a subiquity person (I'm cloud-init; like falco-jr) for alternative suggestions if there are some15:43
yoggOne 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?15:51
cpeteyogg: Indeed. Autoinstall is just another yaml config, which is often delivered by cloud-config, but they are distint. 16:14
cpetehttps://canonical-subiquity.readthedocs-hosted.com/en/latest/explanation/cloudinit-autoinstall-interaction.html16:14
cpetes/distint/distinct16:15
=== patrick_ is now known as patrick
=== JanC is now known as Guest3954

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!