From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mail-wi0-f172.google.com ([209.85.212.172]:52139 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754910Ab3FBRv4 (ORCPT ); Sun, 2 Jun 2013 13:51:56 -0400 Received: by mail-wi0-f172.google.com with SMTP id m6so2026947wiv.11 for ; Sun, 02 Jun 2013 10:51:55 -0700 (PDT) From: Sami Kerola To: util-linux@vger.kernel.org Cc: kerolasa@iki.fi Subject: [PATCH 07/19] docs: correct sfdisk --activate instructions Date: Sun, 2 Jun 2013 18:51:13 +0100 Message-Id: <1370195485-27907-8-git-send-email-kerolasa@iki.fi> In-Reply-To: <1370195485-27907-1-git-send-email-kerolasa@iki.fi> References: <1370195485-27907-1-git-send-email-kerolasa@iki.fi> Sender: util-linux-owner@vger.kernel.org List-ID: The activate can be enabled by renaming the command to 'activate'. Quite confusingly the option and command arguments are interchangeable, and depending on which one is defined as --activate option argument the command will behave different rather different ways. Signed-off-by: Sami Kerola --- fdisks/sfdisk.8 | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/fdisks/sfdisk.8 b/fdisks/sfdisk.8 index 57c9a68..2b166fa 100644 --- a/fdisks/sfdisk.8 +++ b/fdisks/sfdisk.8 @@ -223,8 +223,37 @@ and change nothing else. (Probably this fifth partition is called /dev/hdb5, but you are free to call it something else, like `/my_equipment/disks/2/5' or so). .TP -.BR \-A ", " \-\-activate " \fInumber\fR" -Make the indicated partition(s) active, and all others inactive. +\fB\-A\fR, \fB\-\-activate\fR [\fIdevice\fR or \fIpartition number\fR] +The activate option will turn on bootable flag. +.IP +The activate option takes optional argument. When the option argument is +not defined command will list partitions that has bootable flag set on +for device given as command argument. For example. +.IP +.nf +.if t .ft CW + % sfdisk --activate /dev/sda +.fi +When the activate has option argument, and command argument list, the +partitions defined as command argument will be set to have bootable flag. +Other partitions for the device are clered not to have bootable flag. +For example the partitions 1 and 4 are set bootable, while 2 and 3 are +cleared. +.IP +.nf +.if t .ft CW + % sfdisk --activate=/dev/sda 1 4 +.fi +If only a single partition must be activated then the partition number +must be given as option argument, and device as command argument. For example. +.IP +.nf +.if t .ft CW + % sfdisk --activate=1 /dev/sda +.fi +.IP +The activate functionality is turned on when the program invocation name is +.IR activate . .TP .BR \-c ", " \-\-id " \fInumber\fR [\fIId\fR]" If no \fIId\fR argument given: print the partition Id of the indicated -- 1.8.3