patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: "Johannes Süllner" <johannes.suellner@mailbox.org>
To: devel@spectrum-os.org
Cc: "Johannes Süllner" <johannes.suellner@mailbox.org>
Subject: [PATCH v2 4/5] release/live: remove B slot from live image and reduce A slot size
Date: Wed,  4 Feb 2026 18:55:24 +0100	[thread overview]
Message-ID: <20260204175543.22164-6-johannes.suellner@mailbox.org> (raw)
In-Reply-To: <20260204175543.22164-2-johannes.suellner@mailbox.org>

In contrast to the old installer, with the new installer the live image
is not copied as a whole to the destination disk any more. Instead,
`systemd-repart` creates partitions with the desired size, and then
copies the individual partitions. So the partitions are effectively
enlarged during the installation, making it possible to shrink them to
the minimum size here.

Signed-off-by: Johannes Süllner <johannes.suellner@mailbox.org>
---
 release/live/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/release/live/Makefile b/release/live/Makefile
index f5fe558..2d693f4 100644
--- a/release/live/Makefile
+++ b/release/live/Makefile
@@ -10,10 +10,8 @@ dest = build/live.img
 $(dest): ../../scripts/format-uuid.sh ../../scripts/make-gpt.sh ../../scripts/sfdisk-field.awk build/boot.fat $(ROOT_FS_IMAGES)
 	../../scripts/make-gpt.sh $@.tmp \
 	    build/boot.fat:c12a7328-f81f-11d2-ba4b-00a0c93ec93b \
-	    $(ROOT_FS_VERITY):verity:$$(../../scripts/format-uuid.sh "$$(dd if=$(ROOT_FS_VERITY_ROOTHASH) bs=32 skip=1 count=1 status=none)"):Spectrum_'$(VERSION).verity:162' \
-	    $(ROOT_FS_IMAGE):root:$$(../../scripts/format-uuid.sh "$$(head -c 32 $(ROOT_FS_VERITY_ROOTHASH))"):Spectrum_'$(VERSION):20000' \
-	    /dev/null:verity:18f2ccff-92f1-4bb1-a80e-24f76ecda90c:_empty:162 \
-	    /dev/null:root:ec0c5ff3-f6b1-4adf-82b4-61336c4d135f:_empty:20000
+	    $(ROOT_FS_VERITY):verity:$$(../../scripts/format-uuid.sh "$$(dd if=$(ROOT_FS_VERITY_ROOTHASH) bs=32 skip=1 count=1 status=none)"):Spectrum_'$(VERSION).verity' \
+	    $(ROOT_FS_IMAGE):root:$$(../../scripts/format-uuid.sh "$$(head -c 32 $(ROOT_FS_VERITY_ROOTHASH))"):Spectrum_'$(VERSION)'
 	mv $@.tmp $@
 
 build/boot.fat: $(SYSTEMD_BOOT_EFI) $(SPECTRUM_EFI)

  parent reply	other threads:[~2026-02-04 17:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 17:55 [PATCH v2 0/5] Spectrum-installer Johannes Süllner
2026-02-04 17:55 ` [PATCH v2 1/5] tools: add spectrum-installer Johannes Süllner
2026-02-04 17:55 ` [PATCH v2 2/5] host/rootfs: integrate spectrum-installer Johannes Süllner
2026-02-05  4:17   ` Demi Marie Obenour
2026-02-05  8:56     ` Johannes Süllner
2026-03-15 11:56     ` Alyssa Ross
2026-03-15 12:15   ` Alyssa Ross
2026-02-04 17:55 ` [PATCH v2 3/5] release: drop combined and installer image Johannes Süllner
2026-03-15 12:20   ` Alyssa Ross
2026-02-04 17:55 ` Johannes Süllner [this message]
2026-03-15 12:21   ` [PATCH v2 4/5] release/live: remove B slot from live image and reduce A slot size Alyssa Ross
2026-02-04 17:55 ` [PATCH v2 5/5] Revert "scripts/make-gpt.sh: allow setting partition size" Johannes Süllner
2026-03-15 12:23   ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260204175543.22164-6-johannes.suellner@mailbox.org \
    --to=johannes.suellner@mailbox.org \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).