Friday, 2023-09-01

noonedeadpunkhey folks! I was wondering if there's some element that can be helpful to fetch an imga from URL and just unpack/convert to required format? I'm specifically thinking about fedora-coreos, but not limited to that07:46
clarkbnoonedeadpunk: some of elements work that way so it is doable. I think ubuntu does this15:57
clarkbbut if that is all you need you cna just qemu-img convert it too probably15:57
noonedeadpunkwell. I can. though wanna manage all images with pretty much same tool whenever possible... even if it will do "stupid" thing for some16:00
noonedeadpunkway easier to automate when you need to build everything periodically...16:00
clarkbya then I would look into making a simple element that takes an input image and doesn't really do anything to it16:01
clarkbthen the qemu-img conversions dib does will apply and you can select output format16:01
bindasHi everyone , i wanted to ask some help on using diskimage-builder tool. i am trying to modify ubuntu 20.04 LTS cloud image with few packages preinstall in the image. how can i do so ?21:15
bindasany help is appreciated :)21:15
clarkbbindas: I think you can supply a list of pacakges to install on the command line. Alternatively you can write a small element that lists the packages to install21:32
clarkbwe use a small element. I'm working on finding a link to it21:33
bindasthe main part i am not understanding is how  specify which ubuntu version i want to build 21:33
clarkbhttps://opendev.org/openstack/project-config/src/branch/master/nodepool/elements/infra-package-needs21:33
JayFthere is a package-install element in dib directly, I think? https://docs.openstack.org/diskimage-builder/latest/elements/package-installs/README.html21:38
JayFyeah, looks like that takes a yaml or json file in to declare packages21:39
JayFbindas: hmm, lets try to figure that out21:39
JayFbindas: https://docs.openstack.org/diskimage-builder/latest/elements/ubuntu/README.html says to use DIB_RELEASE21:39
* JayF sees what values go there in ubuntu land21:39
clarkbJayF: yes, the element I linked to above uses the package-installs element. I think you do something like export DIB_RELEASE=focal21:39
JayFoooh nested elements, got it21:40
bindasJayF:  yeh  actually found that on how to install/declare packages  with -p option on cli21:40
JayFhttps://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu/root.d/10-cache-ubuntu-tarball#L15 yeah confirming what clark says (of course he was right) that it wants the codename21:41
bindasone more quick question , if i build an image today and another image a week from now . will dib install the lastest packages. for example ubuntu cloud images are updated almost daily. so if i build an image today and later from week from now. it will grab the lastest packages ?21:43
bindasnot sure if i am making sense 21:43
JayFthere is some caching, but generally speaking yes, unless you're hitting your cached image21:45
JayFwhich you should be able to tell from the distinct lack of "downloading a giant image" at the top of the build :D 21:45
bindasoh ok awesome , thank you so much JayF and clarkb 21:46
JayFgood luck, we're here if there's any trouble :)21:46
bindas:) 21:47
JayFyou building these for openstack or for something else, just curious?21:47
bindasopenstack21:47
JayFnice; good luck :) I'll be over in -ironic, too, if you need bare metal provisioning :D21:47
JayFgood luck21:47
bindassure sounds good , thanks man21:47
clarkbour CI system rebuilds iamges regularly to keep up to date with packages so ya that should definitely work21:47
bindasyeh  i am trying to build images on weekly basis21:48
bindasi tried bard , chatgpt and bing .. none of them could give me right answers yet :D21:49
JayFWe are a better AI. Their intellegence is artificial, ours is actual ;) 21:49
bindashahahaha XD21:50
JayF(j/k, no magic here, I just read docs and know where to find them quickly)21:50
bindas:)21:50

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