<div dir="ltr"><div>Hi!</div><div><br></div><div>I'm curious about general support for BSD flavors with the guestfs-tools and any history behind this. I've read through small bits of the code, and from what I can tell certain commands aren't going to be supported (install[0], update, uninstall) but maybe some will "just work" such as inject-ssh[1] or password?<br></div><div><br></div><div>I've been attempting to set a user password for an OpenBSD 6.9 image[2], but I'm met with an error related to mounting (ufs). Embarrassingly, and while the error is very clear, I don't understand how to resolve this or if I'm trying to achieve something that doesn't work. I've tried adding `--mount-options` but I can't tell if these are getting propagated down.<br></div><div><br></div><div>```</div><div>$ virt-sysprep -v --add openbsd-6.9.qcow2 --password openbsd:password:openbsd</div><div>...<br></div><div>command: mount '/dev/sda4' '/sysroot//'<br>[    1.997492] ufs: ufs was compiled with read-only support, can't be mounted as read-write<br>[    1.998352] ufs: You didn't specify the type of your ufs filesystem<br>[    1.998352]<br>[    1.998352] mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...<br>[    1.998352]<br>[    1.998352] >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old<br>[    2.001713] ufs: ufs_fill_super(): bad magic number<br>command: mount returned 32<br>command: mount: stderr:<br>mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage or helper program, or other error.<br>ocaml_exn: 'mount_options' raised 'Failure' exception<br>guestfsd: error: mount exited with status 32: mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage or helper program, or other error.<br>guestfsd: => mount_options (0x4a) took 0.02 secs<br>virt-sysprep: warning: mount_options: mount exited with status 32: mount:<br>/sysroot: wrong fs type, bad option, bad superblock on /dev/sda4, missing<br>codepage or helper program, or other error. (ignored)<br>[   2.3] Performing "abrt-data" ...<br>guestfsd: <= inspect_get_type (0x1e3) request length 56 bytes<br>commandrvf: stdout=n stderr=y flags=0x0<br>commandrvf: udevadm --debug settle -E /dev/sda4<br>SELinux enabled state cached to: disabled<br>No filesystem is currently mounted on /sys/fs/cgroup.<br>Failed to determine unit we run in, ignoring: No data available<br>guestfsd: => inspect_get_type (0x1e3) took 0.01 secs<br>guestfsd: <= glob_expand (0x71) request length 68 bytes<br>guestfsd: error: glob_expand_stub: you must call 'mount' first to mount the root filesystem<br>guestfsd: => glob_expand (0x71) took 0.00 secs<br>virt-sysprep: error: libguestfs error: glob_expand: glob_expand_stub: you<br>must call 'mount' first to mount the root filesystem<br><br>If reporting bugs, run virt-sysprep with debugging enabled and include the<br>complete output:<br><br>  virt-sysprep -v -x [...]<br>libguestfs: closing guestfs handle 0x555ea1442800 (state 2)</div><div>...<br></div><div>```<br></div><div><br></div><div>This brings me to asking if there is any desire to support BSD flavors, has it been done in the past and removed, or is it even feasible? I would imagine this has already been explored and I'm just failing to find the mail thread explaining things. If anyone has any experience doing this or advice, I would really appreciate it. I'm incredibly new to all of this, my apologies if this seems dumb or a waste of time.</div><div><br></div><div>Thank you kindly for any assistance on the matter,</div><div>Brady Pratt<br></div><div><br></div><div>[0]: <a href="https://github.com/rwmjones/guestfs-tools/blob/master/customize/customize_run.ml#L73-L101">https://github.com/rwmjones/guestfs-tools/blob/master/customize/customize_run.ml#L73-L101</a></div><div>[1]: <a href="https://github.com/rwmjones/guestfs-tools/blob/3a498512f58bc431db490e96cdb712b19389bda4/customize/ssh_key.ml#L97">https://github.com/rwmjones/guestfs-tools/blob/3a498512f58bc431db490e96cdb712b19389bda4/customize/ssh_key.ml#L97</a></div><div>[2]: <a href="https://bsd-cloud-image.org/">https://bsd-cloud-image.org/</a></div></div>