]> git.ipfire.org Git - thirdparty/grub.git/commit
osdep/freebsd: Fix partition calculation for EBR entries
authorJames Clarke <jrtc27@jrtc27.com>
Tue, 26 Feb 2019 18:40:14 +0000 (18:40 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 5 Mar 2019 09:21:54 +0000 (10:21 +0100)
commit222cb8f6df4f0e5964a5dfcdc9a4eb9ad2e631a6
tree090ac6293378a0d608c429ae33065eba376bd299
parent686db9664654fd54da0e5ba136322dd9a9423930
osdep/freebsd: Fix partition calculation for EBR entries

For EBR partitions, "start" is the relative starting sector of the EBR
header itself, whereas "offset" is the relative starting byte of the
partition's contents, excluding the EBR header and any padding. Thus we
must use "offset", and divide by the sector size to convert to sectors.

Fixes Debian bug #923253.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Reviewed-by: Colin Watson <cjwatson@ubuntu.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/freebsd/getroot.c