[Bug 255824] Unattended install with UEFI and ZFS fails

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 12 19:58:22 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255824

            Bug ID: 255824
           Summary: Unattended install with UEFI and ZFS fails
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs at FreeBSD.org
          Reporter: xaa+fbsdbug at dohd.org

In 13.0 extra logic is added to use /boot/efi to set the UEFI boot part using
efibootmgr. When using ZFS, /boot/efi is never mounted, so the changes are done
to /mnt on tmpfs, rendering the system unable to boot.

I did this on a VM under ESXI and in
https://forums.freebsd.org/threads/unattended-install-on-freebsd13-with-zfs-efi.80296/
it was also checked using VirtualBox, but after further investigation, I think
this is unrelated to the install environment, and it should break on any system
trying to do unattended install using ZFS and UEFI (or BIOS+UEFI).

The initial part of installerconfig that I use:

export DISTRIBUTIONS="kernel.txz base.txz localinstall.txz"
export INTERFACES="vmx0 vmx1"
export ZFSBOOT_VDEV_TYPE=stripe
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.


More information about the freebsd-bugs mailing list