On 10.08.2017 16:23, Sebastian Parschauer wrote: > In non-interactive mode, the command line arguments are appended > to a string list with command_line_push_line() in multi_word mode. > That mode does not count empty strings as a word. > For mkpart and a GPT disk label, the partition name is picked up > from that string list. The partition name is mandatory and we > cannot make it optional. So it is not possible to set an empty > partition name from command line this way. > Also setting a default name is no option as this causes duplicate > /dev/disk/by-partlabel/ symlinks and systemd errors this way. > > So count empty strings as words in multi_word mode to allow the > the following commands to set an empty partition name. > > parted -s /dev/vdb mkpart "" 1MiB 100% > parted -s /dev/vdb mkpart "" ext3 1MiB 100%
Arvin Schnell found a bug in interactive mode in this. Using "mkpart " (with a space at the end) e.g. caused by command completion causes that it doesn't ask for the partition name any more. I'll do a V2 which requires empty inner quotes '""' or "''" in multi_word mode. Cheers, Sebastian