From unknown Sat Jun 21 12:28:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22599: Feature Request: Add ability to pass blank/empty partition name when using --script Resent-From: Dev User Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Mon, 08 Feb 2016 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22599 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 22599@debbugs.gnu.org X-Debbugs-Original-To: bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14549556983473 (code B ref -1); Mon, 08 Feb 2016 18:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2016 18:21:38 +0000 Received: from localhost ([127.0.0.1]:60388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSqRN-0000tx-Mn for submit@debbugs.gnu.org; Mon, 08 Feb 2016 13:21:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43544) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSqIA-0000b7-KD for submit@debbugs.gnu.org; Mon, 08 Feb 2016 13:12:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSnP6-0001Y7-9T for submit@debbugs.gnu.org; Mon, 08 Feb 2016 10:07:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSnP6-0001Y3-5z for submit@debbugs.gnu.org; Mon, 08 Feb 2016 10:07:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSnP0-0007tl-93 for bug-parted@gnu.org; Mon, 08 Feb 2016 10:07:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSnOv-0001Wm-At for bug-parted@gnu.org; Mon, 08 Feb 2016 10:06:58 -0500 Received: from forward8h.cmail.yandex.net ([87.250.230.219]:53465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSnOv-0001WX-0I for bug-parted@gnu.org; Mon, 08 Feb 2016 10:06:53 -0500 Received: from web16h.yandex.ru (web16h.yandex.ru [IPv6:2a02:6b8:0:f05::26]) by forward8h.cmail.yandex.net (Yandex) with ESMTP id 3539C214D3 for ; Mon, 8 Feb 2016 18:06:50 +0300 (MSK) Received: from web16h.yandex.ru (localhost [127.0.0.1]) by web16h.yandex.ru (Yandex) with ESMTP id C31D5560337; Mon, 8 Feb 2016 18:06:49 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1454944009; bh=TqxZsVr83wXsV59qJj4FcGR3quThRzHuQXKT67vWPQ8=; h=From:To:Subject:Date; b=LWoDDwjvMsMO+EWzUVkWtgikn17DtfQfUIhiGEZU2B2O4ugtxhoBB9m6O8MGBxjAs 66SVWd56xd8RYdcoeio73HW+UV+ozKkMXR/5v+BXwHb0+FS/p6lAupFWomn0J70dx8 vWnCC52ygBMXbxa2i3TQYLYaCqiRg9pXpMsJbebA= Received: by web16h.yandex.ru with HTTP; Mon, 08 Feb 2016 18:06:49 +0300 From: Dev User Envelope-From: dev-user2016@yandex.com MIME-Version: 1.0 Message-Id: <1919601454944009@web16h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 08 Feb 2016 09:06:49 -0600 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Mon, 08 Feb 2016 13:21:36 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) When using interactive mode it is possible to specify an empty partition name for the mkpart command. However, when using the --script option an error occurs because it doesn't handle an empty name. This results in an error: sudo parted --script /dev/xvdf mklabel gpt mkpart '' 'ext2' '0%' '100%' print all This works, but you have to specify a name: sudo parted --script /dev/xvdf mklabel gpt mkpart MyPartName 'ext2' '0%' '100%' print all Ideally I could just specify: sudo parted --script /dev/xvdf mklabel gpt mkpart 'ext2' '0%' '100%' print all and parted would parse the parameters correctly but requiring a '-' or '--' (or whatever) would work too.