Closed davidchisnall closed 5 months ago
I wonder if it is related to #1036?
I think that’s what introduced the alternative name, it didn’t update the error handling cleanup.
I believe you have might be using poudriere-devel from ports. There is no tmpzroot
after #1036.
Yup, looks like it's fixed here. Maybe someone could update the port. The poudriere port is on a 2021 release and -devel is a year-old snapshot. The release can't build working ZFS images at all, the -devel version can but kills the host system if anything goes wrong.
The error handler force unmounts
${zroot}
not${tmpzroot}
. By default, the pool created with Poudriere has the same name as the pool created by the installer, so this has the effect of force unmounting the root zpool. This unmounts all filesystems except the root, which completely breaks the system.I have changed this:
to this:
in
delete_image
inimage.sh
, but I am not sure whether we actually need to destroy${zroot}
in any situation.