]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Teach ufs_module.c about bsd labels and probe 'a' partition.
authorWarner Losh <imp@FreeBSD.org>
Tue, 29 May 2018 03:58:29 +0000 (03:58 +0000)
committerWarner Losh <imp@FreeBSD.org>
Tue, 29 May 2018 03:58:29 +0000 (03:58 +0000)
commit9958932695e95d4f42bbe98a4acd2f84efb4ccb0
tree40f82a49c2d88cd6cd97129f6790a454b8a303fd
parent23d2383783ad04ff89f3c63354e0b28bd457a05b
Teach ufs_module.c about bsd labels and probe 'a' partition.

If the check for a UFS partition at offset 0 on the disk fails, check
to see if there's a BSD disklabel at block 1 (standard) or at offset
512 (install images assume 512 sector size). If found, probe for UFS
on the 'a' partition.

This fixes UEFI booting images from a BSD labeled MBR slice when the
'a' partiton isn't at offset 0. This is a stop-gap fix since we plan
on removing boot1.efi in FreeBSD 12. We can't easily do that for 11.2,
however, hence the short MFC window.

Tested by: emaste@
MFC After: 3 days
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D15598
stand/efi/boot1/boot_module.h
stand/efi/boot1/ufs_module.c