Page MenuHomeFreeBSD

Put the rootfs on the correct partition
ClosedPublic

Authored by andrew on Feb 13 2018, 9:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 5:01 PM
Unknown Object (File)
Mon, Nov 4, 7:37 AM
Unknown Object (File)
Sat, Nov 2, 6:06 PM
Unknown Object (File)
Fri, Nov 1, 10:46 PM
Unknown Object (File)
Sep 8 2024, 8:33 PM
Unknown Object (File)
Sep 7 2024, 3:58 PM
Unknown Object (File)
Sep 7 2024, 11:09 AM
Unknown Object (File)
Sep 7 2024, 9:21 AM
Subscribers

Details

Summary

The Pine64 root filesystem was incorrectly created directly on the MBR
partition. This can cause the loader to get confused when loading the
kernel from this filesystem.

The loader will see this as a small partition meaning later checks to
ensure it doesn't read past the end of the disk incorrectly report a
failure. This seems to work mostly by accident with the released images
as they are smaller than the reported size, however after growfs has
run the image may no longer boot.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 13 2018, 2:55 PM
gjb requested changes to this revision.Feb 13 2018, 5:44 PM
gjb added a subscriber: gjb.

It appears this needs one additional change, to MD_ARGS.

-MD_ARGS="-x 16384 -y 255"
+MD_ARGS="-x 63 -y 255"

Without this, /dev/${mddev}s2a does not get created, and subsequently the mount(8) call fails.

This revision now requires changes to proceed.Feb 13 2018, 5:44 PM
This revision is now accepted and ready to land.Feb 13 2018, 6:36 PM
This revision was automatically updated to reflect the committed changes.