Page MenuHomeFreeBSD

Put the rootfs on the correct partition
ClosedPublic

Authored by andrew on Feb 13 2018, 9:35 AM.
Tags
None
Referenced Files
F81930400: D14343.id39242.diff
Tue, Apr 23, 8:54 AM
Unknown Object (File)
Mar 14 2024, 1:42 PM
Unknown Object (File)
Mar 14 2024, 1:42 PM
Unknown Object (File)
Mar 14 2024, 1:42 PM
Unknown Object (File)
Mar 14 2024, 1:42 PM
Unknown Object (File)
Mar 11 2024, 12:58 AM
Unknown Object (File)
Jan 13 2024, 10:45 AM
Unknown Object (File)
Jan 3 2024, 9:33 PM
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.