poudriere
poudriere copied to clipboard
image: zrawdisk image does not boot
Hi,
An image built using zrawdisk
type doesn't boot as support for non-partitioned root ZFS disks has been dropped by https://svnweb.freebsd.org/base?view=revision&revision=342151
Sounds like removing zrawdisk
support in poudriere image is the correct solution. But I wonder if we should do that now or if it makes sense to wait until this change is in all supported releases? FWIW, I think that would be when 12.x is no longer supported, June 30, 2024.
This commit is present in 12.1 and 11.3 so the only supported release that don't have this change is 12.0 that get out of support, February 4 2020.
Ah, sorry, didn't notice the timestamp on that, thanks. Well, removing zrawdisk
support is simple enough and I doubt anyone will miss it. Let's wait until Feb to remove it though.
Looks like we can remove zrawdisk now?
If we drop this we will have no way to build ZFS images?
I use this with mkimg(1) to build images.. Should this be extended to include that step as well?
Adding the gpart commands to add a partition table shouldn't be too difficult. I was reading the code yesterday before I found this issue and it looks as if there's also a gpart bootcode
command missing.
Please don't remove the existing code - we need to be able to build ZFS images for cloud deployments and this looks like the best starting point for us. The current workflow of installing from CD into a local VM, running freebsd-update, and then exporting the VHD is not one that we can scale up.
As it is titled it is a raw, so no partition table at all you can use mkimg(1) or whatever you need to configure it for your env. I use this to build images for a Xen cluster and for Vagrant images.
@davidchisnall I can share my script if you would like.
@brd can you post your script somewhere? sounds useful
@brd, any chance that you can share your script? I'd like to be able to create bootable ZFS images with Poudriere (since the project still doesn't provide ZFS VM images, the every user needs to build their own images somehow). I had a PR open two years ago to allow this but maintainer feedback was not of the standard that I'd expect from an open source project.