Change the gptboot example so the boot partition is aligned on a 4 kB

boundary.

MFC after:	3 days
This commit is contained in:
des 2012-08-29 15:18:56 +00:00
parent 19916e0c85
commit 3e53f10006

View File

@ -1006,11 +1006,12 @@ or
but smaller than 545 kB since the first-stage loader will load the
entire partition into memory during boot, regardless of how much data
it actually contains.
This example uses 94 blocks (47 kB) so the next partition will be
This example uses 88 blocks (44 kB) so the next partition will be
aligned on a 64 kB boundary without the need to specify an explicit
offset or alignment.
The boot partition itself is aligned on a 4 kB boundary.
.Bd -literal -offset indent
/sbin/gpart add -b 34 -s 94 -t freebsd-boot ad0
/sbin/gpart add -b 40 -s 88 -t freebsd-boot ad0
/sbin/gpart bootcode -p /boot/gptboot -i 1 ad0
.Ed
.Pp