yaroslav-gwit / HosterCore

🚀 Hoster: Empowering FreeBSD Virtualisation with Ease
https://docs.hoster-core.gateway-it.com/
Apache License 2.0
41 stars 0 forks source link

Migrate from `genisoimage` package to `https://github.com/kdomanski/iso9660` library #43

Open yaroslav-gwit opened 1 year ago

yaroslav-gwit commented 1 year ago

genisoimage is not a part of the main FreeBSD image, so it would be beneficial to implement something native to Golang, in case the genisoimage ever gets changed or removed from the PKG repos.

yaroslav-gwit commented 7 months ago

I could use makefs instead (which is even better, because it's a part of the base system):

genisoimage -output "${VM_DS_PATH}/${_name}/seed.iso" -volid cidata -joliet -rock ${_cloud_init_dir}/* > /dev/null 2>&1 || util::err "Can't write seed.iso for cloud-init"
makefs -t cd9660 -o R,L=cidata "${VM_DS_PATH}/${_name}/seed.iso" ${_cloud_init_dir} || util::err "Can't write seed.iso for cloud-init"