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 1F158CF20; Sat, 22 Nov 2025 01:28:12 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 208B7CDFE; Sat, 22 Nov 2025 01:27:53 +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-xb136.google.com (mail-yx1-xb136.google.com [IPv6:2607:f8b0:4864:20::b136]) by atuin.qyliss.net (Postfix) with ESMTPS id B95CACDAA for ; Sat, 22 Nov 2025 01:27:45 +0000 (UTC) Received: by mail-yx1-xb136.google.com with SMTP id 956f58d0204a3-642f3bab0c8so1913140d50.0 for ; Fri, 21 Nov 2025 17:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763774864; x=1764379664; 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=j9wQib7Da++9QxBbFitAbTZE8sivj16ox5OJlM+wdL3vlEav+L79KnRtNAEDXIOu1J a/lzwR8IE+6JEvJvUNJMcUcUEqnvnXgGSfPw7BoDLnbkTVG2gfU5bRFYvqklSkPeLMfD ueQ8u6ZLX9FITDE1MsRprpBbBG9w0nK09l5R5PcS9Uh7H+tZArMbSjwvbT66ONB5Aq3P 2k3ER9L5V4JhMDApXkEZ9qXk3oSBCHNP8qWgc89/R8sygbEhXBBOxgze2mXQCli9uibw ORhLVHsTiRuKTguQtkf67wXQhc+Ys5TFPAiRrTjembDzWCSSAu3MTcEjPjE6HqMWoins +Vkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763774864; x=1764379664; 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=NlC7QDFoXNMSbS6wnl+ZiiOtYgpem4Lpz8yD+vkI3chsNe8yUmO2TlCrNZIQhB6ol1 HZr/1Le6KZx3/Jn4H+E84nTxiWBrKI2XJ3aV9t9QjydLuwnPCF/YFWd/tB21S/ZeR9si +f3nbjx3uI7Fa/PEWXlxSntKQwMS7FzA8zo8Sfq7AQ+Jmo3Pg0UONbJkJoubcux92ylJ TqtK14QmCh5oeIh742h5YJoaKZ7bL/SvvAAHKPjyfyb3/FqNanaZ6uwA3jtuuFtj9h5H 8POTiee916dym+GGl7U611dtmcXNAmXfaQV+Niqao0JAOflmf3gZv3U9I6f4+11n6SCe qY9A== X-Gm-Message-State: AOJu0Yw7WWdKLsadj+Iua50+QVLdEdWmSLouWMw3VX0YhevFwZT4I5p9 DG08f1MsCPwNt93cIqhH9PXfb+5zCwgKMunn8rOlo5SwD/ZgpcPc5i3V9EnGKQ== X-Gm-Gg: ASbGncsoVesJRUuAeQk5BBlDVNs3L5uNxHD7FaCnBVB7OP4mWruj7Fh7jCS+NYYxL11 3ukhxg1T7/Sd7FrjIcTPZcdLOIFgUajhSzhackxDYYdIIdVruKGIQKtP7TAwKHn6OClHN4DbP9k Im5uq+QCxiSj0LLfmDLQQhrozeK4igbgogEf2Sszy+rmNnCoCKVhQGcir+9W6XTN/l8EVKR9NHv HgRqpk0JGiBidelhncyHqWdvyhZ85mUXYUtvQ4RmMV6XcUXXOP7eyaNih9lufMub6S148WhXdd8 Rwh1Ekq6OfzGp1x7737xgRwBTlbpKB/oUMRn4w+I/XU/39rGv4pjSx9BIXfxHgVqmqAZVDwKtmP L7Mdtc1ThW4yVZwkLgaiD09fZmXBEsA1MrV3Dg/maSXqQCiMUxeR3M91nR4mKbotIjm58+lCqpx 3h4+HmHnAIRK9F3cYAWFc5jR66fzBEPAHHn7uT/tm/1X+rQX8GBJjiCh619TIEF4/JKuwchZDtQ CRCT9CFeC6+0y1cHZ1lF0yoio4htvsMA74= X-Google-Smtp-Source: AGHT+IF7GDKPP5OJuD9pgraHfQvErRuOteZPp588J+RC6jlXdM3aCp4yadoxfVp/hirKhXUvyo8Eow== X-Received: by 2002:a05:690e:16a0:b0:63f:b5d8:9da0 with SMTP id 956f58d0204a3-64302a427c3mr2731827d50.22.1763774863661; Fri, 21 Nov 2025 17:27:43 -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 00721157ae682-78a798a8106sm20560747b3.19.2025.11.21.17.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Nov 2025 17:27:43 -0800 (PST) From: Demi Marie Obenour Date: Fri, 21 Nov 2025 20:23:32 -0500 Subject: [PATCH v4 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: <20251121-updates-v4-10-d4561c42776e@gmail.com> References: <20251121-updates-v4-0-d4561c42776e@gmail.com> In-Reply-To: <20251121-updates-v4-0-d4561c42776e@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763774602; l=1889; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=nhdR9Xd4Iqvr3qydp7ZaW8Aat6p8hzti0LWiZOBU3l4=; b=ahFkAof7aszug1z/Wb7uF5N5HAZsG2LPI8rmtyATVPYuG6xjBAOvUNfIpsM6ckWJLoIUA2T3Y dlcoykI5FBBAAiwt/PJxQynYExnHOxc3mUEzALnXraoJTml79zKDVif X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: 5OSUTIQQA2HWEPF2WFWHILXMGIMDTREE X-Message-ID-Hash: 5OSUTIQQA2HWEPF2WFWHILXMGIMDTREE 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