From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 548641B6FC; Wed, 19 Nov 2025 08:21:40 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id D2F701B674; Wed, 19 Nov 2025 08:21:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-yx1-xb131.google.com (mail-yx1-xb131.google.com [IPv6:2607:f8b0:4864:20::b131]) by atuin.qyliss.net (Postfix) with ESMTPS id 6221B1B5A6 for ; Wed, 19 Nov 2025 08:21:22 +0000 (UTC) Received: by mail-yx1-xb131.google.com with SMTP id 956f58d0204a3-640c857ce02so6150161d50.0 for ; Wed, 19 Nov 2025 00:21:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763540480; x=1764145280; darn=spectrum-os.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2TavRo6wKtOZpk1GZCboxkzPPx6zTLphjv+uoM5IZrE=; b=A60HCXh2jz94zx9HWyXaeqJz1WmWqsScSo2kcGnV9Q3quv49W+czU44hx2cVobNyWm TB2tYIgk4uGqHIb1GcyS7w/Mv4CmFl0G4A+a70nphYL0gifR8D14hgEhiQLaJLlzy8RE pcy3mv4M7K7WXn7zTNC2YGLXI/78DBpyXBSnYnr0XBuBKlVhs3svPuL3PPuRp5aDN61C ITL0EYslqrOBxUI0Mgeal8uzrGs3jUidDn3ZDBxdHXVERhmkHsPPvbO8SjlcsdCRo6AD pMu5c175F39yvKmhGKFrZFd1+grsZwo2DIN3DxQ6YZPLF/z+LQiH+rCV5d1U8YtBh/1r +czQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763540480; x=1764145280; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=2TavRo6wKtOZpk1GZCboxkzPPx6zTLphjv+uoM5IZrE=; b=sesaGRQDmMokhwjiBl3Yk3X9iC5e6Kcm1LD2DkLuI0tj48Efl659Mx8a1lFCLQ1b5o MFpZb3rnPAnUZKgBLaQJapK0jZeKXtXZ5bXGrfXYV7i06O2WgYdegTCwcqRVtUrr+cUM WLwVZwv1BIq/CcvYTfnwPvB6iYjMJ5w5TdXI3dvlViEawfSj+u3+aQrxKpOiCsDNcKXl MRjgLJyZhYk44Vg4qIqzcdWQObbORxvIZrNlB9q+nxNDBnrDhUA1IOg4pBVwMVb2Dn5I 0dRUgEJ+o/XgtDIq6st4sA1A/inJFxINLXAXElvnbGEgu/hMoY/A9Vu9SoBoN39es4hT d87Q== X-Gm-Message-State: AOJu0YyhUfYg3Q4g1OE+m6i5qzS+HoG/jwkyzn83PeR3T3iuRzrJZHdM LDI9z6rlLqfPRhSbmXUDYP6WDYpVTiQcFbHgYRrH5lIpBrwHs9oGhN1CFhjB+A== X-Gm-Gg: ASbGncvM+7Z4LSgCmsHrEK0ommyy/RkjRuxPensjtLqT3HZ7F8pk30neuUeoA5No4Lp 3cNEYLeUDpVP/bPbMJtK5VCQqJQXFesDJqZPpE2DFVKqPC25LN28yqKp+quCQ+7zbbMCvVD8R4q ZQcqzSBsHsfYW7OdRG24J+/1a3qxXlQGDg7r33S1i3paIIzEYydLs9X9VbF3TV6j0pGlEH4KX9R NyUFCX4eUnCcJItPU5lpggCe+GeHADBjG6lr7cc8LZW6Uz8wGw2vu/EALNnq0Dt0vLMg6TZQuc9 4ec9OM0WMsbksG2tCFCcU4GafhA06Ys2hd/K7YA9XerJPtkJH+bYtk96dvSd1nmHBeIiRLkYcb+ pPtvnLCKlBFVyynCNT3GA2Uq6KZEXeNbKFD/xm/QLpk7lteYWqRz6wfHfT6TQr9S+bIhuyfT9lt kZmZ24iv9fZaysnRkKf/0tM/HNYVs63nKoglKd4nDkQ4oLMc7Ffgnyqvt2yJVeTbiYC0aBkOumg UE70TOuwWzgG7sAnK9OZ273GMsfMg1vP1XPL1/FnAysIA== X-Google-Smtp-Source: AGHT+IErI2UY+SqlL4yOCdw57MUPR1SspMjPUm6wBOG3dcQUPwpARxCXf6bF9sxKCiYSuKGc4RRcZQ== X-Received: by 2002:a05:690e:2494:b0:641:f5bc:6996 with SMTP id 956f58d0204a3-641f5bc707bmr9142118d50.82.1763540480430; Wed, 19 Nov 2025 00:21:20 -0800 (PST) Received: from localhost.localdomain (h96-60-249-169.cncrtn.broadband.dynamic.tds.net. [96.60.249.169]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-6410eabbd71sm6671231d50.16.2025.11.19.00.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 00:21:19 -0800 (PST) From: Demi Marie Obenour Date: Wed, 19 Nov 2025 03:18:33 -0500 Subject: [PATCH v3 10/14] Add B partitions to installation images MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251119-updates-v3-10-b88a99915509@gmail.com> References: <20251119-updates-v3-0-b88a99915509@gmail.com> In-Reply-To: <20251119-updates-v3-0-b88a99915509@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763540303; l=1889; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=nhdR9Xd4Iqvr3qydp7ZaW8Aat6p8hzti0LWiZOBU3l4=; b=Zsdk6NjvJx9Qk+j3XE/sObz3bT/hbnKHG7JtSKabny5SMhCLgj6KBk85i+GJAb/TwNNJYrHp5 vQJ5EkabdIpAnhrYmu+Jb4snc86kEcnFfX/jn7//j4C92vlBF493HP0 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: I7QJEYE7KX5MRLV6I4RMF7NTTM4P5I2A X-Message-ID-Hash: I7QJEYE7KX5MRLV6I4RMF7NTTM4P5I2A X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Demi Marie Obenour , Alyssa Ross X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: systemd-sysupdate never writes to the running OS partition. Instead, it requires a separate partition to write the update into. Create a separate partition for that purpose. systemd-sysupdate will fail if the OS image does not fit in the partitions that the installer created. Therefor, make the partitions very large so that there is plenty of room for the OS to grow. This requires rewriting the code that calculates the partition sizes. Signed-off-by: Demi Marie Obenour --- Changes since v2: - Make into a standalone commit - Do not rely on separate script to generate the images. - Use a smaller size for the verity partition. --- release/live/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/release/live/Makefile b/release/live/Makefile index a85edfde2d186716656ed23fe719ca63b31bcd59..cf2ace4f5e4ba20a2c0ce9803f72acf0e23f9df3 100644 --- a/release/live/Makefile +++ b/release/live/Makefile @@ -10,12 +10,15 @@ DTBS ?= build/empty dest = build/live.img $(dest): ../../scripts/format-uuid.awk ../../scripts/make-gpt.sh ../../scripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES) + # 162MiB was calculated by running `veritysetup format` on 20GiB from /dev/urandom uuids=$$(awk -f ../../scripts/format-uuid.awk < $(ROOT_FS_VERITY_ROOTHASH)) && \ set -euo pipefail -- $$uuids && \ bash ../../scripts/make-gpt.sh $@.tmp \ build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \ - $(ROOT_FS_VERITY):verity:$$3:Spectrum_'$(VERSION).verity' \ - $(ROOT_FS):root:$$1:Spectrum_'$(VERSION)' + $(ROOT_FS_VERITY):verity:$$3:Spectrum_'$(VERSION).verity:162MiB' \ + $(ROOT_FS):root:$$1:Spectrum_'$(VERSION):20000MiB' \ + $(ROOT_FS_VERITY):verity:$$4:_empty:162MiB \ + $(ROOT_FS):root:$$2:_empty:20000MiB mv $@.tmp $@ build/empty: -- 2.52.0