Friday, 2021-11-12

cstoneHi all. I am using diskimage-builder to build an image based off an Ubuntu 20.04 QCOW2 packager image we create. I'm finding that at some point DIB attempts to remove GRUB, which is now an "essential package" and I think may need --allow-remove-essential for that  command. (example: https://pastebin.com/0dJVzfQG)00:25
cstoneAdding the param to https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu/pre-install.d/00-remove-grub#L13-L17 does make our image build succeed00:27
ianwcstone: hrm, what point is it removing grub?00:32
cstoneianw: Looks like it's part of the ubuntu element pre-install00:32
ianwhrm, ok, it looks like that general idea has been there since 2013.  it may well not be relevant now00:34
ianw# The grub post-kernel install hook will barf if the block device can't be00:35
ianw# found (as happens in a chroot).00:35
ianwi doubt the grub post-install hooks look anything like what they used to00:35
cstoneyeah, very likely that might not be needed anymore - at the very least, it seems like it's changing and might cause problems00:36
ianwmy first thought would probably be to remove that00:37
ianwwe don't do a lot of testing on the ubuntu element.  cgoncalves *may* know more00:38
opendevreviewlikui proposed openstack/diskimage-builder master: Replace deprecated assertEquals  https://review.opendev.org/c/openstack/diskimage-builder/+/81766301:46
opendevreviewChris Stone proposed openstack/diskimage-builder master: Adding allow-remove-essential for ubuntu grub install.  https://review.opendev.org/c/openstack/diskimage-builder/+/81766602:13
opendevreviewChris Stone proposed openstack/diskimage-builder master: Adding allow-remove-essential for ubuntu grub removal.  https://review.opendev.org/c/openstack/diskimage-builder/+/81766602:15
cstoneI submitted a bug for it and a quickie fix (just adding the flag in) but it may be more appropriate to remove entirely. I'm a bit less familiar of the impact on that.02:19

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