shermanm | this 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 |
---|---|---|
shermanm | E.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.yaml | 17:45 |
clarkb | shermanm: 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 though | 17:47 |
clarkb | It 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 work | 17:47 |
clarkb | the readme for that element has some examples | 17:47 |
clarkb | as a side note if you need better control you might try ubuntu-minimal and build up rather than tear down | 17:48 |
clarkb | but I think debootstrap will still pull in a kernel there | 17:48 |
shermanm | clarkb: thanks, I was getting myself mixed up between the deprecated per-phase-directory uninstalls and the non-deprecated path | 17:49 |
shermanm | this is just because we have some variants where we need the hwe kernel to work around bugs in the "standard" one | 17:50 |
shermanm | and 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 confusing | 17:52 |
shermanm | and I think ultimately moved from the ubuntu-minimal -> ubuntu when we needed to do a lot of arm64 builds, as I kept having debootstrap headaches | 17:52 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!