GNU bug report logs - #43993
parted in script mode still needs "yes/no" as input in "are you sure" questions

Previous Next

Package: parted;

Reported by: Michael Kopp <kopp.michael <at> yahoo.de>

Date: Wed, 14 Oct 2020 20:25:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Michael Kopp <kopp.michael <at> yahoo.de>
Cc: 43993 <at> debbugs.gnu.org
Subject: bug#43993: parted in script mode still needs "yes/no" as input in "are you sure" questions
Date: Wed, 14 Oct 2020 13:32:07 -0700
On Wed, Oct 14, 2020 at 08:55:45PM +0200, Michael Kopp via Bug reports for the GNU Parted disk partition editor wrote:
> Hi,
> 
> I wanted to use parted in a script and used the `--script` option.
> Unfortunately, I wanted to do something risky (resizing the partition 
> that is still mounted -- in my defense: It's only in a virtual machine), 
> and then the script will not continue but die with
> 
>      Warning: partition /dev/sda2 is being used.  Are you sure
>      you want to continue?

I'm reluctant to add something like this because of the potential for
data loss when things go wrong. The script mode defaults to 'safe' for
all of the prompts like this to avoid unexpected surprises.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart





This bug report was last modified 4 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.