c45765537f
- parted: when printing, also print the new disk flags - tests: update tests for new disk flags output - tests: add test for GPT PMBR pmbr_boot flag - doc: update parted documentation
63 lines
1.4 KiB
Diff
63 lines
1.4 KiB
Diff
From 6a38a57cb567ae4206bdfde09bcbed9e50639107 Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Wed, 1 Feb 2012 13:12:00 -0800
|
|
Subject: [PATCH 5/5] doc: update parted documentation
|
|
|
|
* doc/parted.text: Add disk_set command.
|
|
---
|
|
doc/parted.texi | 31 +++++++++++++++++++++++++++++++
|
|
1 files changed, 31 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/doc/parted.texi b/doc/parted.texi
|
|
index f6c64f5..bd8c33b 100644
|
|
--- a/doc/parted.texi
|
|
+++ b/doc/parted.texi
|
|
@@ -415,6 +415,7 @@ GNU Parted provides the following commands:
|
|
|
|
@menu
|
|
* align-check::
|
|
+* disk_set::
|
|
* help::
|
|
* mklabel::
|
|
* mkpart::
|
|
@@ -458,6 +459,36 @@ Example:
|
|
|
|
@end deffn
|
|
|
|
+@node disk_set
|
|
+@subsection disk_set
|
|
+@cindex disk_set, command description
|
|
+@cindex command description, disk_set
|
|
+
|
|
+@deffn Command disk_set @var{flag} @var{state}
|
|
+
|
|
+Changes a flag on the disk. A flag can be either ``on'' or ``off''.
|
|
+Some or all of these flags will be available, depending on what disk
|
|
+label you are using:
|
|
+
|
|
+@table @samp
|
|
+
|
|
+@item pmbr_boot
|
|
+(GPT) - this flag enables the boot flag on the GPT's protective MBR
|
|
+partition.
|
|
+
|
|
+@end table
|
|
+
|
|
+The disk's flags are displayed by the print command on the "Disk Flags:"
|
|
+line. They are also output as the last field of the disk information
|
|
+in machine mode.
|
|
+
|
|
+@example
|
|
+(parted) @kbd{disk_set pmbr_boot on}
|
|
+@end example
|
|
+
|
|
+Set the PMBR's boot flag.
|
|
+@end deffn
|
|
+
|
|
@node help
|
|
@subsection help
|
|
@cindex help, command description
|
|
--
|
|
1.7.6.5
|
|
|