[Bug 208802] Install to zfs should have copies= option to provide some anti-bitrot protection

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Oct 2025 00:29:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208802

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=4b734c47744611d1d2bd61d15045b7903d4c35be

commit 4b734c47744611d1d2bd61d15045b7903d4c35be
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-09-30 02:46:57 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-10-04 00:27:07 +0000

    bsdinstall: Add loader.efi to all ESPs we create

    For proper redundancy, add copies of loader.efi to each of the ESPs we
    create when we create multi-volume ZFS datasets. zfsboot creates a list
    of secondary ESPs, while bootpart doesn't create any (it's the UFS
    partitioning tool) because we don't supporg UFS over gmirror. The
    primary ESP is mounted and is what we use efibootmgr to boot from. The
    redundant copies allow the system to boot if the primary disks fails.

    Sponsored by:           Netflix
    MFC After:              2 days
    PR:                     208802
    Reviewed by:            cperciva
    Differential Revision:  https://reviews.freebsd.org/D52780

    (cherry picked from commit 494de51bc0074472d1b01604f085daea0844f240)

 usr.sbin/bsdinstall/scripts/auto       |  3 ++
 usr.sbin/bsdinstall/scripts/bootconfig | 61 ++++++++++++++++++++++------------
 usr.sbin/bsdinstall/scripts/zfsboot    | 28 +++++++++-------
 3 files changed, 59 insertions(+), 33 deletions(-)

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