Thursday, 2025-02-20

shermanmthis might be a silly question, but I couldn't find it in the docs: is there a clean way to override package-installs item from a "parent" element?17:45
shermanmE.g. I have an element that depends on `ubuntu`, but I want a different kernel than the one in https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu/package-installs.yaml17:45
clarkbshermanm: the package-installs element can uninstall packages. I don't know for sure that it will resolve a request to install and a request to uninstall as a final request to uninstall though17:47
clarkbIt looks like you can control the phase of the action though so its possible that you could do the uninstall at a later phase to workaround that if it doesn't just work17:47
clarkbthe readme for that element has some examples17:47
clarkbas a side note if you need better control you might try ubuntu-minimal and build up rather than tear down17:48
clarkbbut I think debootstrap will still pull in a kernel there17:48
shermanmclarkb: thanks, I was getting myself mixed up between the deprecated per-phase-directory uninstalls and the non-deprecated path17:49
shermanmthis is just because we have some variants where we need the hwe kernel to work around bugs in the "standard" one17:50
shermanmand for what its worth, we used to base off of ubuntu-minimal, but ran into cases where that image was sufficiently different from the published ubuntu-cloud images to be confusing17:52
shermanmand I think ultimately moved from the ubuntu-minimal -> ubuntu when we needed to do a lot of arm64 builds, as I kept having debootstrap headaches17:52

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!