[Bug 294480] FreeBSD does not boot with custom bsd partition layout
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 294480] do not boot with custom partition layout"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Apr 2026 22:55:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294480
Xin LI <delphij@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Closed
Resolution|--- |Works As Intended
CC| |delphij@FreeBSD.org
Assignee|bugs@FreeBSD.org |delphij@FreeBSD.org
--- Comment #2 from Xin LI <delphij@FreeBSD.org> ---
Thank you for putting the time into this proposal!
Looking at the context, it seems you might be running into issues due to an
unsupported configuration. For bsdlabel, the first partition must start at an
offset of at least 16 (sector 0 is strictly for boot1, and sectors 1-15 are for
boot2). If the partition starts any earlier (in your case, freebsd-swap started
at 0), the bootblocks will eventually be overwritten, leaving the system
unbootable.
Regarding adding probing logic to boot2: because of the rigid historical size
limits of the bootblock, we currently have only about ~150 bytes of free space
left. Given this extreme constraint, and the fact that the industry has largely
transitioned to the more flexible UEFI and GPT partitioning schemes, our
consensus is to keep the legacy boot2 code as simple as possible rather than
introducing new complexity.
We really appreciate your efforts and interest in improving the boot process,
even if we can't take this specific approach!
--
You are receiving this mail because:
You are the assignee for the bug.