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 340651B52E; Wed, 19 Nov 2025 08:21:14 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 7E6B31B519; Wed, 19 Nov 2025 08:21:11 +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-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by atuin.qyliss.net (Postfix) with ESMTPS id B743B1B518 for ; Wed, 19 Nov 2025 08:21:10 +0000 (UTC) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-787da30c53dso56457607b3.0 for ; Wed, 19 Nov 2025 00:21:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763540469; x=1764145269; darn=spectrum-os.org; h=cc:to:references:in-reply-to:content-transfer-encoding:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to; bh=Q6zvqYyjCk69S0kaW8s2U6CJW9M743dJIctAp2kbE/0=; b=O0Xp8J+EuVERHJrgl8ovXTly1EuSeQjFiirBdwnaSMQQZj0d1+YEW4AAygJwnBDaP/ gUUAZB1rKk19WXjbTDJ6vgKugQXnyct63b97fEdr3Mx91vQ22aiKnDwLSQYPfs7ulZU4 F7ICNiUZ2EWCQ6Og70GUC7r7nQd2ajafb/5Yh0Vrq1NGC0Qb/1u3VPrjRY9xo9KsqaoR UbCZovl4C3ByxYovjunmWRyPyWIP3llwpxyvgS+IgVuHAoxzns5S8sJ7nVkQ8hyfzrb6 +9g1kvbZz7OcAB2HqLaGrMbitSlmtXxXl/bdEV0E1UnzVNCNQ1FzLx2sO1ACHZSX+WLF TA5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763540469; x=1764145269; h=cc:to:references:in-reply-to:content-transfer-encoding:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q6zvqYyjCk69S0kaW8s2U6CJW9M743dJIctAp2kbE/0=; b=dR/Ug+30yvxdIWidghfE91HTHj8/ltET7F0lYikX33bAGT6L3J8vzkL+VFtGpX4Uzv b4eCP6ACcKWn4imWgAuOF0tPxTV/Q7tz47gfNmWOKidC1qDbmUO3cFmiDso+BJxNgmGK RBtj9sCc40u8wCZ71p6HUEdzSj9CX93jtrTRcrGrYbDMwQNCOLzERUddPSg9WvU9lWq0 6yeELK89s/vohgVNxC3nHEHpFiBzhbC8XMn5yERPK19lJza+J9Wwtuh6INHI7WqZw8bi gkZrgmxm1/pilO4PWyR6rUKmeDEsUi3xvS88/7OLbWHwXTwNG9jHPJJCEq0hxpAKaLPN /Sgw== X-Gm-Message-State: AOJu0YxigZDQb7WsHDyR61+WQ+wPzVCaoFHVWiUrM+VgbLdBTDmVBI6w kKLmo86YkPYSYzGtsorJSfZpWbdWznaxFTDkXz8uihLjSCGcH2P9aJGcocCIZQ== X-Gm-Gg: ASbGncv2T5XyiXjMSsDAFOEIMrdMoYK1LV/IYLT1yvNHVivs88Rq+KSZ6rYT17/N98y ej99uJvL8yRU+HTB1rlu7bbeFyNcJHqh6m8LHhGHJKgk5SxFGEhN5BAOw2EAqBxh2VxlpdMoT0h WYtzAt4vL0I0JFgX0CnbNpWnqY4xqRlOXwcvQsA0ycF/yTwN6YeSPwlRp35nSrJeriZqP7L8A6K 28DshCn9wdAEU4fi70kyglLLZTtNWgPVQJ1FmnENICCK4rXw1nu4HUvV4z+kcCjCRSti2kjX0av hUHWPpPnEONFMB84c4sGuywbnWGAAd5nALoUtEWTObmLaWKrN/KlG1sEvcN9bwY+jo4K8NbmKE1 qeDWkUW1E/ZQHNb2tX8yJOYxTdneJxHYq079J1f5d7qSjbFfUZ9/X+AJkI2mKxP0u7TecTwZn2t 4IS5E1ckEoLdUY+bBSBq8EZM8WqwV7Do0NIp6sxMcTDXr0WpKRg8gPPhmxXPCXVskDUDgWr61cj e/sIAoS2ZZJhN6X8HMHXp3J6grH9pM8JvM= X-Google-Smtp-Source: AGHT+IFxFGL9lPrPjWls3HWPLKPhYsBY4FvtP0r7B4cmkD8lGy2QzWHGD/ylHNC6vybVpwvM1Nbdfg== X-Received: by 2002:a05:690c:46c1:b0:786:91ac:e160 with SMTP id 00721157ae682-78929bf7b30mr182611027b3.0.1763540468427; Wed, 19 Nov 2025 00:21:08 -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-7882216923csm60519787b3.51.2025.11.19.00.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 00:21:07 -0800 (PST) From: Demi Marie Obenour Subject: [PATCH v3 00/14] System updates based on systemd-sysupdate Date: Wed, 19 Nov 2025 03:18:23 -0500 Message-Id: <20251119-updates-v3-0-b88a99915509@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAE99HWkC/02PSW7DMAxFr2JoXRcirYHKqvcoutBAxQKa2LEdo 0WQu1exgaTLT/A98t/EzFPhWRyam5h4LXMZzjV0b42IvT8fuS2pZoEStXRI7XVMfuG5dcjOkXK MHYi6PU6cy89m+vyquS/zMky/m3iFx3RzgET3dKzQylZJiBAYPUD4OJ58+X6Pw0k8HCu+OAB8c Vg5ouRMyATBuv/cfX9m4su1tln2j8Tol9jXLodGcsKA0nZR+mCSQvTeKMwJOwqgFVI02aa91JO KGihIVsgykrVac7aofWRiZyCmHMggkq73739JOwX2VQEAAA== X-Change-ID: 20250928-updates-92e99849e231 In-Reply-To: <20251112-updates-v2-0-88d96bf81b79@gmail.com> References: <20251112-updates-v2-0-88d96bf81b79@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1763540303; l=6070; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=D+ZdccfLO8XMYkzF3zBUo0x+343SaW3CTtIr+vUR7Xg=; b=sFkWvCCsE3ONPyL8ArFImJq9NyHZk+qXlClPt9YId57oI5M3D6QVKH7sLGLo0Agqb+IgMW0R9 kPTZnOixmkOCyl4q/UUqTbLCpFC1yEiuhMIzJIRP3djX4UxYJWfW6FW X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: RFK2QR2564C3WPDHWRYRCZMR243OL2AZ X-Message-ID-Hash: RFK2QR2564C3WPDHWRYRCZMR243OL2AZ 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: This implements updates via systemd-sysupdate. See individual commit messages for details. There are major changes to the image build process. Signed-off-by: Demi Marie Obenour --- Changes in v3: - See individual commits for details. There are too many to mention here. - Link to v2: https://spectrum-os.org/lists/archives/spectrum-devel/20251112-updates-v2-0-88d96bf81b79@gmail.com Changes in v2: - updates-dir-check: - Do not check that there is a SHA256SUMS or SHA256SUMS.gpg file in the update directory. systemd-sysupdate will fail if it cannot find a manifest or its signature. - Follow symlinks in opening the directory. The path is from a trusted source and will always point to a BTRFS snapshot, never a symlink. The only exception is the last component, which is still checked to not be a symlink. - VM: - Link SHA256SUMS.sha256.asc to SHA256SUMS.gpg. Recent systemd-sysupdate seems to use the former name. - Get update URL from host. - Use an execline script instead of a shell script. - Update script: - Unmount shared directory if already mounted. This avoids errors when mounting it again. - Delete old snapshot if present. - Provide the VM information with a different directory layout. - Do not bind-mount the information passed into the VM into the shared VM folder. Instead rely on this folder being read-only to the guest. This is enforced by a read-only bind mount in virtiofs's mount namespace. - Testing: - Lots of manual update testing. - Disable the test for the live image as it doesn't work anymore. - Nix: - Move validation to a separate low-priority patch. - Documentation: - Document that updating the system is now possible. - Installer: - Remove the "Try Spectrum" button. - Link to v1: https://spectrum-os.org/lists/archives/spectrum-devel/20251029-updates-v1-0-401c1be2a11b@gmail.com --- Demi Marie Obenour (14): host/rootfs: Install all programs from util-linuxMinimal host/rootfs: Install systemd-pull tools: Add directory checker for updates scripts: port make-gpt.sh to bash scripts/make-gpt.sh: Allow specifying partition size Support generating multiple partition UUIDs scripts: Use shell expansion to get partition path Use OS version to set partition labels and UKI name release: Compress installation images and remove live image Add B partitions to installation images release: Create directory with system update Support updates via systemd-sysupdate Documentation: Update support Validate configuration parameters Documentation/development/build-configuration.adoc | 13 ++ Documentation/installation/getting-spectrum.adoc | 56 +++++++-- Documentation/installation/index.adoc | 4 +- Documentation/using-spectrum/index.adoc | 2 + Documentation/using-spectrum/updates.adoc | 30 +++++ host/efi.nix | 2 +- host/initramfs/Makefile | 18 +-- host/initramfs/etc/probe | 20 --- host/initramfs/shell.nix | 2 + host/rootfs/Makefile | 27 ++++- host/rootfs/busybox-config | 134 +++++++++++++++++++++ host/rootfs/busybox-config.license | 4 + host/rootfs/default.nix | 87 ++++++++----- host/rootfs/file-list.mk | 7 ++ host/rootfs/image/etc/fstab | 1 + .../image/etc/sysupdate.d/50-verity.transfer | 20 +++ host/rootfs/image/etc/sysupdate.d/60-root.transfer | 20 +++ .../image/etc/sysupdate.d/70-kernel.transfer | 20 +++ .../image/etc/vm-sysupdate.d/50-verity.transfer | 18 +++ .../image/etc/vm-sysupdate.d/60-root.transfer | 18 +++ .../image/etc/vm-sysupdate.d/70-kernel.transfer | 18 +++ host/rootfs/image/usr/bin/spectrum-update | 83 +++++++++++++ host/rootfs/os-release.in | 15 +++ host/rootfs/shell.nix | 2 + img/app/Makefile | 2 +- lib/config.default.nix | 3 + lib/config.nix | 19 ++- lib/fake-update-signing-key.gpg | 3 + release.nix | 2 + release/checks/integration/meson.build | 2 +- release/checks/integration/try.c | 29 ----- release/combined/eosimages.nix | 11 +- release/combined/grub.cfg.in | 5 - release/live/Makefile | 15 ++- release/live/default.nix | 5 +- release/live/shell.nix | 3 +- release/update.nix | 33 +++++ scripts/format-uuid.awk | 35 ++++++ scripts/format-uuid.sh | 19 --- scripts/make-gpt.sh | 30 ++--- tools/default.nix | 1 + tools/meson.build | 4 + tools/updates-dir-check.c | 133 ++++++++++++++++++++ vm/app/systemd-sysupdate/default.nix | 57 +++++++++ vm/app/systemd-sysupdate/escape-url.awk | 31 +++++ .../systemd-sysupdate/populate-transfer-directory | 26 ++++ vm/sys/net/Makefile | 2 +- 47 files changed, 920 insertions(+), 171 deletions(-) --- base-commit: e079244d16aa0b37dd6a08b6dfe55a6a16ed6d95 change-id: 20250928-updates-92e99849e231 prerequisite-patch-id: 0ed2b2073c0ab6d422aa642fd238b15428c6f7d1 prerequisite-patch-id: c518b0e42e0c87755ef725ace8e961cdfb862285 -- Sincerely, Demi Marie Obenour (she/her/hers)