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" Comment Actions What's the state of this? Has it been resolved in HEAD or do we still have this problem where not all zpool mirror disks get the ESP boot code (only the first one)? Comment Actions Yea, I think if we put it on the partitions that we create, and only those, the issues that caused it to be remvoed before will be solved. I think this does that, but I've not looked closely enough to know for sure. Comment Actions This did not land in time for 14.3, but I'd like to make sure this gets fixed for 15.0 and 14.4. Can someone take ownership of this and resolve any issues so it can land? Comment Actions I can volunteer for this. There's only a few people that have all the right contexts for this. Comment Actions I think it just installs it on all the devices that were used to create the root pool, so that wouldn't need a prompt. But if it's more invasive than that, it does need a prompt. |