Page MenuHomeFreeBSD

Put the rootfs on the correct partition
ClosedPublic

Authored by andrew on Feb 13 2018, 9:35 AM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.