Tuesday, 2023-10-10

noonedeadpunkhey folks! Is there any element, except package-installs, that would allow you to install required package to the image? The problem with package-installs is that you kinda need some noop element that will have just package-installs.yaml in tree I guess?14:32
noonedeadpunkAs I don;t see a way on how to feed some extra packages on top of what is defined for os element14:32
noonedeadpunkTo be more specific - I want to pre-install systemd-resolved for debian bullseye image14:34
clarkbnoonedeadpunk: you can list packages to install on the commandline iirc. But I would use package installs and yes you just make a small element to list all your package needs. The opendev team does thsi and it works well14:48
noonedeadpunkclarkb: so basically element-deps with package-installs, readme and package-installs.yaml should be enough, right?14:50
clarkbyou might also need a pkg-map if doing multiple distros or multiple releases where packages change names14:51
noonedeadpunk++ yeah, true14:51
noonedeadpunkok, gotcha, thanks. I was just not 100% sure if I might also need to have some noop post-install.d or smth like that14:52
clarkbyou shouldn't if all you need is the packages to install14:52
clarkbour element for packages installs has scripts to configure things after installation but that isn't necessary if all you want is the package install proper14:53
noonedeadpunksomehow it feels like https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/debian-systemd might actually fit what I'm doing....14:53
noonedeadpunkbut anyway14:53
noonedeadpunk(except it doesn't do anything except really noop thing)14:54
clarkbnoonedeadpunk: that element is from before debian switched to systemd14:55
clarkbI don't think it serves the same purpose14:56
noonedeadpunkfwiw, `debian` element still thinks it's sysvinit (ie https://review.opendev.org/c/openstack/diskimage-builder/+/891299)14:57
noonedeadpunkah14:57
noonedeadpunknow I got your point14:57
noonedeadpunkand got why this patch is in  a way weird14:57
noonedeadpunkok, awesome, thanks for replies!15:00
clarkbI'm actually surprised that the default is still sysv init15:11
clarkbfungi: ^ you may want ot weigh in on that too15:12
fungiclarkb: probably just stale, i don't see the same in the debian-minimal element15:27
clarkbya ok so having the debian element use systemd by default makes sense for internal dib cohesion and to match upstream15:28
clarkbnoonedeadpunk: I've reivewed that change and its child. Child has a small bug in it16:03
noonedeadpunkah, true!16:04
opendevreviewDmitriy Rabotyagov proposed openstack/diskimage-builder master: Stop creating default user for cloud-init  https://review.opendev.org/c/openstack/diskimage-builder/+/89132216:04

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