]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Never 4k align the MBR bootpool because zfsldr can not deal with a gap
authorallanjude <allanjude@FreeBSD.org>
Sat, 16 Jan 2016 19:25:16 +0000 (19:25 +0000)
committerallanjude <allanjude@FreeBSD.org>
Sat, 16 Jan 2016 19:25:16 +0000 (19:25 +0000)
commit1ed62f8c4a2aca2e5f3797cda5912d71a00a4fe1
tree69c0537ebdb645feb9e3a3d562221411ee4d9a89
parente18c504ec0c5fd91ce3c4175489580acf97c26b9
Never 4k align the MBR bootpool because zfsldr can not deal with a gap

If the bootpool does not start at the first sector of the BSD partition
then zfsldr seeks to the wrong offset inside the ZFS vdev label, and is
unable to find zfsboot, so the system does not boot

If 4k alignment is requested, align the BSD partition in the MBR table,
and align the swap and data pool, but the bootpool must start at sector 1

While here, if 4k alignment is requested, disable MBR CHS alignment, as
this results in not-4k aligned partitions.

Reported by: Alex Wilkinson
MFC after: 5 days
Sponsored by: ScaleEngine Inc.
usr.sbin/bsdinstall/scripts/zfsboot