Page MenuHomeFreeBSD

zfsboot: Remove zfsboot(8) program used to boot ZFS from MBR + BIOS
ClosedPublic

Authored by jhb on Jul 25 2025, 9:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 8:59 AM
Unknown Object (File)
Mon, Oct 13, 8:59 AM
Unknown Object (File)
Sat, Oct 11, 10:58 PM
Unknown Object (File)
Sat, Oct 11, 10:58 PM
Unknown Object (File)
Sat, Oct 11, 10:58 PM
Unknown Object (File)
Sat, Oct 11, 1:39 PM
Unknown Object (File)
Thu, Oct 9, 5:40 AM
Unknown Object (File)
Sun, Oct 5, 9:00 PM
Subscribers

Details

Summary

This has not worked since the import of OpenZFS in FreeBSD 13.0.
Trying to fix it at this point would probably entail rearchitecting
how it works (e.g. using a dedicated freebsd-boot slice to hold
zfsboot). However, it's not really worth doing that at this point.

PR: 271262
Reported by: Henryk Paluch <hpaluch@seznam.cz>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65740
Build 62623: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jul 25 2025, 9:39 PM

Note that stand/i386/zfsboot/zfsboot.c remains as it is used by gptzfsboot. Possibly zfsboot.c should just move into the gptzfsboot/ directory?

In D51545#1177172, @jhb wrote:

Note that stand/i386/zfsboot/zfsboot.c remains as it is used by gptzfsboot. Possibly zfsboot.c should just move into the gptzfsboot/ directory?

I'd move it. I just took a quick look and don't think that more than a Makefile adjustment (to remove the path) and a git mv will be needed.

tools/boot/rootgen.sh
278

This, and the rest of the file. Just as well... I had it working before the OpenZFS import (I think, it's been a while and I got it working long enough to test this script), but haven't really tested it since. It was, as you can see, the ugliest thing I had to do to get to 'support all boot environments.

This revision is now accepted and ready to land.Jul 25 2025, 9:54 PM