Previously, bsdinstall would partition all disks used by the zroot
pool, but would only format and install the boot partition on one.
Reported by: Julien Cigar <julien@perdition.city> and many others
MFC after: 1 week
Sponsored by: Axcient
Differential D42150
bsdinstall: when installing UEFI, place the bootloader on all disks asomers on Oct 10 2023, 8:16 PM. Authored by Tags None Referenced Files
Details Previously, bsdinstall would partition all disks used by the zroot Reported by: Julien Cigar <julien@perdition.city> and many others Running in production with mirrored zroot pools
Diff Detail
Event Timeline
Comment Actions I see that bootconfig used to have code for adding ESPs to all ZFS/UFS boot disks, but it was removed in https://reviews.freebsd.org/D28897. @imp reviewed that one, maybe you could share your opinion here if we should bring parts of that code back? I think all disks that are configured as boot disks by the installer should a working ESP after installation. If the wrong boot disks die then you are left with a system without any ESPs at all.
Comment Actions This latest version fixes the script with UFS, and makes the bootconfig script less ZFS-specific.
Comment Actions To be clear: it wasn't me doing the following work, it was a colleague: This problem bit us on a production server on this past Friday. The host had been recently updated from FreeBSD 14.0 to 14.1 - it had been rebooted multiple times since and during that update. On Friday morning, it did not come back from a reboot. Getting it back was troublesome. It was eventually discovered that one of the two boot drives was not 'intact'. While it had an EFI partition, that partition did not contain a filesystem. Once the filesystem was created and the files copied over (while booting from a live CD), we recovered the host and went on with our weekend. Comment Actions Sorry to bother people, but could we revive this review? I was recently talking to some people who noticed this the hard way and it would be great to get something merged that fixes it, even if it isn't perfect. I think this looks good enough and is definitely not "the ugliest kludge to make this work" |