[Bug 265517] Unattended install FreeBSD 13.1 ZFS+UEFI fails: "cannot unmount '/mnt': pool or dataset busy"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 Jul 2022 13:34:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265517

            Bug ID: 265517
           Summary: Unattended install FreeBSD 13.1 ZFS+UEFI fails:
                    "cannot unmount '/mnt': pool or dataset busy"
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: xaa+fbsdbug@dohd.org

I'm trying to upgrade my automated 13.0 install setup to 13.1.

This results in an error at the end of my post-install script. I've removed the
entire post-install part, and still I get the error.

The error is:
=============

cannot unmount '/mnt': pool or dataset busy

The simplified config that I can use to reproduce it:
=====================================================

export DISTRIBUTIONS="kernel.txz base.txz localinstall.txz"
export INTERFACES="vmx0 vmx1"
export ZFSBOOT_VDEV_TYPE=stripe

# for esx vm
export ZFSBOOT_DISKS=da0

export ZFSBOOT_SWAP_SIZE=2g
export ZFSBOOT_CONFIRM_LAYOUT=0
export ZFSBOOT_SWAP_ENCRYPTION=YES
export ZFSBOOT_BOOT_TYPE="UEFI"
export nonInteractive="YES"

-- 
You are receiving this mail because:
You are the assignee for the bug.