[parted-devel] Discussion: Allow empty name for GPT partitions to fix systemd errors

Brian C. Lane bcl at redhat.com
Mon May 1 18:54:42 UTC 2017


On Fri, Apr 21, 2017 at 09:02:41AM -0400, Phil Susi wrote:
> On 4/21/2017 7:34 AM, Sebastian Parschauer wrote:
> > Thanks, but parted only allows to leave it empty in interactive mode.
> > The name is a required argument in script mode.
> 
> This appears to be a bug.  Or at least the bug is that parted does not
> understand quotes.  My first thought was to simply pass the name
> argument as "" for the empty string, but it does not recognize quotes at
> all.  Trying to use quotes to give a name with a space in it fails.

I agree that this looks like a bug. FWIW I updated the docs for this
when someone ran into problems passing spaces:

parted -s ./disk.img mkpart '"EFI System Partition"' 1M 500M

but it doesn't work with an empty string.

I don't think we need to go to great lengths to change this, just fix
the parsing so you can pass in an empty quoted string.

-- 
Brian C. Lane (PST8PDT)



More information about the parted-devel mailing list