git: 273c500de2c8 - stable/14 - fdisk: add deprecation/removal notice to man page

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 21 Oct 2024 19:09:30 UTC
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=273c500de2c85f14a3971102aae29af765a5002f

commit 273c500de2c85f14a3971102aae29af765a5002f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-10-11 20:09:25 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-10-21 19:08:13 +0000

    fdisk: add deprecation/removal notice to man page
    
    As of 2015 (commit b8c19fd71994) the fdisk man page claimed the command
    is obsolete, but had no explicit mention of removal.  Add another note
    that follows our current deprecation notice format.
    
    Reviewed by:    imp
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D47067
    
    (cherry picked from commit 255d2d9bbc3756c940462c61d3cd6fb7753aab2c)
---
 sbin/fdisk/fdisk.8 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8
index 3c6a73318271..ea54a51a43ae 100644
--- a/sbin/fdisk/fdisk.8
+++ b/sbin/fdisk/fdisk.8
@@ -15,6 +15,22 @@
 .Fl f Ar configfile
 .Op Fl itv
 .Op Ar disk
+.Sh DEPRECATION NOTICE
+.Nm
+is deprecated and is not available in
+.Fx 15.0
+or later.
+Use
+.Xr gpart 8
+instead
+.Po
+with the
+.Cm MBR
+partitioning scheme
+.Pc ,
+or install the
+.Pa freebsd-fdisk
+port or package.
 .Sh PROLOGUE
 In order for the BIOS to boot the kernel,
 certain conventions must be adhered to.