Page MenuHomeFreeBSD

mkimg: Add ms-basic-data alias for GPT
ClosedPublic

Authored by jlduran on Sun, Jul 12, 7:44 PM.
Tags
None
Referenced Files
F163566239: D58198.id181852.diff
Fri, Jul 24, 1:41 PM
F163483189: D58198.diff
Thu, Jul 23, 3:48 PM
Unknown Object (File)
Thu, Jul 23, 5:01 AM
Unknown Object (File)
Thu, Jul 23, 5:00 AM
Unknown Object (File)
Wed, Jul 22, 8:38 PM
Unknown Object (File)
Wed, Jul 22, 8:31 PM
Unknown Object (File)
Tue, Jul 21, 9:52 AM
Unknown Object (File)
Tue, Jul 21, 1:11 AM
Subscribers

Details

Summary

While preparing GPT-schemed RaspberryPi images for the NanoBSD
Reimagined GSoC 2026 project, a discrepancy was identified between
mkimg(1) and gpart(8) regarding Microsoft Basic Data partitions (GUID
!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

Currently, mkimg(1) relies on the MBR-centric name "ntfs" to identify
this partition type under the GPT scheme. Conversely, gpart(8)
identifies this type as 'ms-basic-data'.

To allow automation scripts (such as those consuming from gpart backup)
to use a common partition type across tools, add ALIAS_MS_BASIC_DATA as
a valid alias.

This is part of a larger effort to avoid a custom, MBR-based image
generation logic for embedded SoCs like the Raspberry Pi, standardizing
on GPT layouts across all supported FreeBSD embedded devices.

MFC after: 2 weeks

Diff Detail

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