noonedeadpunk | hey 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 |
---|---|---|
noonedeadpunk | As I don;t see a way on how to feed some extra packages on top of what is defined for os element | 14:32 |
noonedeadpunk | To be more specific - I want to pre-install systemd-resolved for debian bullseye image | 14:34 |
clarkb | noonedeadpunk: 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 well | 14:48 |
noonedeadpunk | clarkb: so basically element-deps with package-installs, readme and package-installs.yaml should be enough, right? | 14:50 |
clarkb | you might also need a pkg-map if doing multiple distros or multiple releases where packages change names | 14:51 |
noonedeadpunk | ++ yeah, true | 14:51 |
noonedeadpunk | ok, gotcha, thanks. I was just not 100% sure if I might also need to have some noop post-install.d or smth like that | 14:52 |
clarkb | you shouldn't if all you need is the packages to install | 14:52 |
clarkb | our element for packages installs has scripts to configure things after installation but that isn't necessary if all you want is the package install proper | 14:53 |
noonedeadpunk | somehow 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 |
noonedeadpunk | but anyway | 14:53 |
noonedeadpunk | (except it doesn't do anything except really noop thing) | 14:54 |
clarkb | noonedeadpunk: that element is from before debian switched to systemd | 14:55 |
clarkb | I don't think it serves the same purpose | 14:56 |
noonedeadpunk | fwiw, `debian` element still thinks it's sysvinit (ie https://review.opendev.org/c/openstack/diskimage-builder/+/891299) | 14:57 |
noonedeadpunk | ah | 14:57 |
noonedeadpunk | now I got your point | 14:57 |
noonedeadpunk | and got why this patch is in a way weird | 14:57 |
noonedeadpunk | ok, awesome, thanks for replies! | 15:00 |
clarkb | I'm actually surprised that the default is still sysv init | 15:11 |
clarkb | fungi: ^ you may want ot weigh in on that too | 15:12 |
fungi | clarkb: probably just stale, i don't see the same in the debian-minimal element | 15:27 |
clarkb | ya ok so having the debian element use systemd by default makes sense for internal dib cohesion and to match upstream | 15:28 |
clarkb | noonedeadpunk: I've reivewed that change and its child. Child has a small bug in it | 16:03 |
noonedeadpunk | ah, true! | 16:04 |
opendevreview | Dmitriy Rabotyagov proposed openstack/diskimage-builder master: Stop creating default user for cloud-init https://review.opendev.org/c/openstack/diskimage-builder/+/891322 | 16:04 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!