[13:55] <dagb> is there a simple one-liner I can use to add a root-pw or a ssh-key to a downloaded img-file?
[13:56] <Krikke> you can do it with cloud init
[13:56] <dagb> I feel like I have a *really* simple problem, and all solutions requires learning sanskrit. from americ. with clay tablets.
[13:56] <Krikke> or you can just mount the image, chroot into it and change the pw
[13:56] <dagb> amharic?
[13:57] <dagb> Krikke the last one requires libguestfs, right?
[13:58] <dagb> Krikke: do you care to suggest a quick and simple way to do it with cloud-init?
[13:58] <Krikke> https://cloudinit.readthedocs.io/en/latest/topics/examples.html
[13:59] <Krikke> you can put it in users section as ssh_authorized_keys
[13:59] <Krikke> or passwd / plain_text_passwd and then set lock_passwd: false
[14:00] <dagb> thank you. this looks promising
[14:08] <dagb> with the glaring exception that I do not understand how to apply the config to my image?
[14:13] <dagb> I need to create a disk image with the config data on it, it appears
[14:15] <Krikke> I dunno, depends on image I guess
[14:15] <Krikke> openstack images have cloudinit pre-installed I think
[14:16] <dagb> There is nothing analog to 'cloud-init myconfig.json diskimag.img  '
[14:16] <Krikke> maybe it's also possible to mount the cloudinit volume
[14:16] <Krikke> no it's a software that runs when the os boots from the image
[14:19] <Krikke> I'm using libvirt with terraform, it mounts an iso with the cloud init stuff when it creates the vm
[14:43] <Krikke> yeah seems it mounts the config from an iso file
[14:47] <dagb> Krikke: thank you for guiding my onto the right path.
[14:47] <dagb> me
[14:48] <dagb> finally figured it out.
[14:48] <Krikke> nice, np