]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Never 4k align the MBR bootpool because zfsldr can not deal with a gap
authorAllan Jude <allanjude@FreeBSD.org>
Sat, 16 Jan 2016 19:25:16 +0000 (19:25 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Sat, 16 Jan 2016 19:25:16 +0000 (19:25 +0000)
commita94af9543df400cc2b8f41a4b6866b9684064728
tree69c0537ebdb645feb9e3a3d562221411ee4d9a89
parentfcc43d065a6c627407cb0b8ad7cb1c57cbc530c7
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