Page MenuHomeFreeBSD

bsdlabel: add legacy notice
ClosedPublic

Authored by emaste on Jan 23 2024, 6:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 6:58 PM
Unknown Object (File)
Sat, Nov 2, 9:55 AM
Unknown Object (File)
Oct 2 2024, 4:06 AM
Unknown Object (File)
Oct 1 2024, 10:11 AM
Unknown Object (File)
Sep 30 2024, 1:10 PM
Unknown Object (File)
Sep 27 2024, 12:59 PM
Unknown Object (File)
Sep 21 2024, 5:26 AM
Unknown Object (File)
Sep 20 2024, 11:54 PM
Subscribers

Details

Summary
BSD disk labels should be avoided on new installations.

There is no concrete plan to remove BSD label support from FreeBSD but
that will happen at some point in the future.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

I might want to deprecate and remove bsdlabel first, due to PR276517 - BSD label manipulation via gpart does not have the same issue.

Make the deprecation notice for bsdlabel explicit. Also remove comment about legacy-ness of MBR/BSD disklabels, this man page isn't the right place for such a note, and there's work to do elsewhere first (e.g. having a stronger preference for not-MBR/bsdlabel in the installer).

Bsdlabel, the program, was supposed to be completely replaced by gpart, etc so this shouldn't be a surprise.

This revision is now accepted and ready to land.Jan 24 2024, 4:47 PM

I'll go ahead and provide a port for the bsdlabel utility so it remains available for legacy use cases.

In D43563#993865, @fuz wrote:

I'll go ahead and provide a port for the bsdlabel utility so it remains available for legacy use cases.

Thanks -- I will not disconnect or remove it before that's done.

First point, a manpage addition is pointless unless you have the binary emit a warning when invoked. Second how does one execute bsdlabel -e -A with gpart?

First point, a manpage addition is pointless unless you have the binary emit a warning when invoked.

Sure, that can be added too, perhaps as a subsequent commit.

Second how does one execute bsdlabel -e -A with gpart?

One doesn't - one would need to install the port that @fuz will create.

Add reference to newly created freebsd-bsdlabel package

This revision now requires review to proceed.Jan 26 2024, 2:15 PM

Mention BSD partitioning scheme - what gpart uses to refer to BSD disklabels

DEPRECATION NOTICE
bsdlabel is deprecated and is not available in FreeBSD 15.0 or later. Use gpart(8) instead (with the BSD partitioning scheme), or install the freebsd-bsdlabel port or package.

This revision was not accepted when it landed; it landed in state Needs Review.Mar 25 2024, 7:44 PM
This revision was automatically updated to reflect the committed changes.