Page MenuHomeFreeBSD

nanobsd: Always define the partition index
Needs ReviewPublic

Authored by jlduran on Fri, Nov 29, 12:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 6:07 PM
Unknown Object (File)
Tue, Dec 3, 3:07 PM
Subscribers
None

Details

Reviewers
emaste
imp
Summary

Print the desired partition index together with the starting sector and
the size in sectors. Otherwise, when only one code partition is
desired, the configuration partition (/cfg) may not end in the third
slice, thus breaking the scripts that expect it there.

This was the previous approach, changed in 587c054bea0f ("nanobsd: Use
gpart and create code image before full disk image"), where the
partition index was printed as the first column.

Fix it by printing the index as the last column to reduce the chances of
breaking current overrides, and using it as the gpart index.

PR: 262098
Fixes: 587c054bea0f ("nanobsd: Use gpart and create code image before full disk image")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jlduran created this revision.