From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 27714592E7; Mon, 19 Sep 2022 07:38:19 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 6467C592B5; Mon, 19 Sep 2022 07:38:14 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by atuin.qyliss.net (Postfix) with ESMTPS id 7D90E59300 for ; Mon, 19 Sep 2022 07:38:10 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 093E05C0283 for ; Mon, 19 Sep 2022 03:38:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 19 Sep 2022 03:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1663573089; x=1663659489; bh=dE sCs40ccHQtTW/oqxruspfSQvyDicViebDpvdZgpms=; b=btz/WZ+zx0coQNoVVl +Z1U0vl1weV93IQUTtk6HvNrVJwWJ3V4kWeYV3Zy8yM9sOJ4JoRy2ItAx9uQIQ+K G7mR6/ACm+pcsYPmO3o2GqHG1aMuzSKGV0imDbKMD4Lba72VAsrFDiNaNTuYnnzz xqOoR5xpPEwmUMzIPJHxn2d+TJQWm51ZhZWUS4JDT11+nJ4pfJ7DkL65Jh59hBIO bhDWVSoE0nD0pZf3opRRziqoqzaU6+qRu+RkFiuefMImsdotkqiU8yfHjoQj/zMr Lr+Et3R9lBszT0YojyU9Jv1ZxvNqv8wGMSVR6hRWtOpn4xK77Ot3pXqubw2FzRFD 6jQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1663573089; x=1663659489; bh=dEsCs40ccHQtT W/oqxruspfSQvyDicViebDpvdZgpms=; b=H7AilQNI++rT3hP4mleEkdme3ZTxw fHNROAvUPlW2QdQozxYWhrmnhqLhbR+ICxa6yBN1wNdJffMVQkmh10We/AFe0Asq 32djxObzUHIfuCDc6RpJ7b2C8zvYSFDepIiYKtAida2DGhhmScImT2VX4N5gvhV6 qPABZ2vq7InKTDh179NhdK5a5mGv27DJ+jub0NOhFYqVOmBsmhPXQd/fpqAMre20 2hjxbHe5ZMj9fkAqLmZ8OWssaSHQ8FHA4Hy2OjSbu7hUN7s4POr4T6ZqOH5h1V5M 9UdVnUaG+CHmuF4HOiInId0WYnLDt0uzOLLkE6JmehYRElE6QMXTUJs7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedviedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeetlhihshhsrgcutfhoshhsuceohhhisegrlhihshhsrgdr ihhsqeenucggtffrrghtthgvrhhnpefgfedukedvleeileeludefveehgeelgfegvdduje dvtdffueeuveffheeljeekvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehqhihlihhsshesgidvvddtrdhqhihlihhsshdrnhgvth X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 19 Sep 2022 03:38:08 -0400 (EDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id A72BF9892; Mon, 19 Sep 2022 07:38:06 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 2/6] scripts/make-gpt.sh: add support for labels Date: Mon, 19 Sep 2022 07:36:56 +0000 Message-Id: <20220919073659.1703271-3-hi@alyssa.is> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919073659.1703271-1-hi@alyssa.is> References: <20220919073659.1703271-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 4OBFZ5PAWVJC6FJSN56ZNAXA4MUDCPZW X-Message-ID-Hash: 4OBFZ5PAWVJC6FJSN56ZNAXA4MUDCPZW X-MailFrom: qyliss@x220.qyliss.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The label parameter is placed after the UUID one, because it doesn't always make sense to specify a label, but specifying a UUID should really be mandatory to ensure reproducible builds. Signed-off-by: Alyssa Ross --- scripts/make-gpt.sh | 4 ++-- scripts/sfdisk-field.awk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/make-gpt.sh b/scripts/make-gpt.sh index 56076d3..e6c3b37 100755 --- a/scripts/make-gpt.sh +++ b/scripts/make-gpt.sh @@ -3,7 +3,7 @@ # SPDX-FileCopyrightText: 2021-2022 Alyssa Ross # SPDX-License-Identifier: EUPL-1.2+ # -# usage: make-gpt.sh GPT_PATH PATH:PARTTYPE[:PARTUUID]... +# usage: make-gpt.sh GPT_PATH PATH:PARTTYPE[:PARTUUID[:PARTLABEL]]... ONE_MiB=1048576 TWO_MiB=2097152 @@ -26,7 +26,7 @@ fillPartition() { dd if="$3" of="$1" seek="$start" count="$size" conv=notrunc) } -# Prints the partition path from a PATH:PARTTYPE[:PARTUUID] string. +# Prints the partition path from a PATH:PARTTYPE[:PARTUUID[:PARTLABEL]] string. partitionPath() { awk -F: '{print $1}' <