HomeFreeBSD

stand: i386: take into account disk sector size for blk calculation

Description

stand: i386: take into account disk sector size for blk calculation

disk_blocks assumes BIOSDISK_SECSIZE, but the media may not be using
it. In particular, bioscd on Parallels presents a 2K sector size, so
we end up with a short disk_blocks and subsequent validation fails when
trying to read /boot/lua.

PR: 233098
Reviewed by: imp, tsoome

(cherry picked from commit 72291cee075d9ef1a608b2a67762b44e024cc0d4)

Details

Provenance
kevansAuthored on Sep 8 2022, 12:35 AM
Parents
rG6ef5bf8c21aa: arm64, riscv: size boot stacks appropriately
Branches
Unknown
Tags
Unknown