/srv/irclogs.ubuntu.com/2024/03/14/#cloud-init.txt

holmanmeena: welcome back! 03:15
holman(belated)03:16
holmanlooks like /var/run doesn't automatically get wiped every boot on *bsd03:17
holmanSo i think we'll need to add back in an rm -rf per boot, but at least now it can be in the expected file location for bsd03:23
holmanmeena: Code_Bleu filed a bug about it03:42
holmanmeena: another thing, when you get a chance (sorry for the barriage, I assume you've been busy)03:44
holmanhttps://github.com/canonical/cloud-init/pull/482003:44
-ubottu:#cloud-init- Pull 4820 in canonical/cloud-init "Respect runtime file locations" [Open]03:44
holman your perspective on that one would be appreciated 03:46
meenaholman: I'm in the process of testing that, but i also made the mistake to test on AWS which is absolute garbage of platform and how the hell is anyone doing anything there??08:48
meenaholman: which bsd?08:48
meenaFreeBSD has https://github.com/freebsd/freebsd-src/blob/main/libexec/rc/rc.d/cleanvar08:50
meenaNetBSD has https://github.com/NetBSD/src/blob/trunk/etc/rc.d/clearcritlocal08:52
meenaholman: okay, accidentally tested your code13:07
meenamain issue: the contents of /run/cloud are splattered in /var/run13:07
meenahttps://gist.github.com/igalic/3c1cf15e203ddfc04d41a777c78ae09313:09
meenaunrelatedly, cloud.cfg on AWS should be using the ec2-user, not "freebsd"13:21
meenaholman: okay, left some comments, now need to fix up ec2-user on aws/FreeBSD, and our home directory, too13:42
meenamaybe that's just something our AMI creation script needs to patch15:10
minimalmeena: username? that's coming from https://github.com/canonical/cloud-init/blob/main/config/cloud.cfg.tmpl#L23915:14
meenaminimal: aye, i'm just looking at AWS' documentation, which always uses ec2-user, regardless of the actual OS image15:14
meenaso I guess they are patching it then; and we need to be patching it, too15:15
minimalas a freebsd-specific overrride isn't defined here: https://github.com/canonical/cloud-init/blob/main/config/cloud.cfg.tmpl#L2615:15
meenaokay, so, we have an override, https://github.com/freebsd/freebsd-src/blob/main/release/tools/ec2-cloud-init.conf15:24
meenawhich I didn't have, because I used the base image to install *my* cloud-init version…15:24
meenaso, I guess, all i need to really fix is     # Currently broken, cloud-init hard-codes to /usr/home/*15:25
meenaalso need to figure out why our build script is duplicating rc.conf entries.15:28
minimalmeena: that's down to cloudinit/distros/freebsd.py though...16:24
=== gdamjan_ is now known as gdamjan
=== bahamat_ is now known as bahamat
meenahttps://github.com/canonical/cloud-init/pull/506122:45
-ubottu:#cloud-init- Pull 5061 in canonical/cloud-init "distro(freebsd): add_user: respect homedir" [Open]22:45

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!