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 6544B120BA; Mon, 08 Dec 2025 21:05:10 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id A446311FFF; Mon, 08 Dec 2025 21:05:08 +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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) by atuin.qyliss.net (Postfix) with ESMTPS id 24F79120A1 for ; Mon, 08 Dec 2025 21:05:07 +0000 (UTC) Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailfout.phl.internal (Postfix) with ESMTP id 1D756EC05A4; Mon, 8 Dec 2025 16:05:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Mon, 08 Dec 2025 16:05:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1765227905; x= 1765314305; bh=h9fPXCHQG5iPvlT0Ny26llwCAFXTZprzUNg0254sVrg=; b=M X5D3HP6zwadydBa8idllhh3fNCVrCRH9TBp9Va8I73rhZqgzNj6bEuuGLw7UZUc4 Eo20Wtyb6t3qgG+G4SlvTKfP1mWZjaXdpv7mb9Jiv/Yp0BowzCm1B1rhsakZQGeg rY5r9GMaR0fCJCxk89MJmw9D9W/yWB8YevKG0TSJke8w+43wjbBtxAQ6JSulVtAS 5GX3I2cRVwyYlsLQthDMorJqWB4kfuPKin9sNOcoR5LEfTGe+3rUOC5YNdOxn045 5XMXSjemgAIi7aP6Nce0CJV/iFOTb56NAaYAIALo0olWMiQvTqzgxC4sX6cgoZhn whdhW6mIu7HEHSEBRpBsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1765227905; x=1765314305; bh=h 9fPXCHQG5iPvlT0Ny26llwCAFXTZprzUNg0254sVrg=; b=ZEGiVvz0X2w6ic1xB KDV7CSqUCFDVfue/Jyx3/ELegEqtuYgx4kqNZTN7OyUxAMOatQKp8tH8aBcR1sX8 iPJH6+BwpGN0jAQUY7GkX0X5VQqVqPnEsGxbSc8jxvN8VAl50EX69AbDMOgCvBUY oxBexccdGLyCUqkHxwWUkMfjphxQTP6G3+ock8aYrGvIeXmcWdjHxhLusenX2aV9 ZLgY8nHYH7i8Q9us35rjLe5m1TlweZAV8lQ6zkdp71fLpXTQpQGZCDJedIaIwJ96 HjKnyTz/dqtVLJfvFTIrMlGjiVg6bACt149f30TAhotLpgDKXjezcUVdU4ipfjwr IDzGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddujeejudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeethfegie ffffelteduueeltdelueethfeuteevieetuefggeefuddvlefgtdefvdenucffohhmrghi nhepshhpvggtthhruhhmqdhoshdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhishdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggvmhhiohgsvghnohhurh esghhmrghilhdrtghomhdprhgtphhtthhopehjohhhrghnnhgvshdrshhuvghllhhnvghr sehmrghilhgsohigrdhorhhgpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqd hoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Dec 2025 16:05:04 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id C49EA5BB118C; Mon, 08 Dec 2025 22:04:58 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH v2 2/2] vm/app/systemd-sysupdate: retry a few times Date: Mon, 8 Dec 2025 22:03:17 +0100 Message-ID: <20251208210416.426243-4-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251208210416.426243-2-hi@alyssa.is> References: <20251208210416.426243-2-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: ZWRO5GO4QPZNAAX24QZJ3LGLBEQPGLN2 X-Message-ID-Hash: ZWRO5GO4QPZNAAX24QZJ3LGLBEQPGLN2 X-MailFrom: hi@alyssa.is 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 , =?UTF-8?q?Johannes=20S=C3=BCllner?= 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: It takes time for the network to come up, so it's likely that the download will fail immediately after the VM boots. Signed-off-by: Alyssa Ross --- v2: unchanged v1: https://spectrum-os.org/lists/archives/spectrum-devel/20251208162526.319756-2-hi@alyssa.is/ vm/app/systemd-sysupdate/download-update | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vm/app/systemd-sysupdate/download-update b/vm/app/systemd-sysupdate/download-update index f8f5aed..32a078f 100755 --- a/vm/app/systemd-sysupdate/download-update +++ b/vm/app/systemd-sysupdate/download-update @@ -1,5 +1,6 @@ #!/usr/bin/env -S execlineb -WS0 # SPDX-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2025 Alyssa Ross # SPDX-FileCopyrightText: 2025 Demi Marie Obenour export LC_ALL C export LANGUAGE C @@ -59,7 +60,12 @@ multisubstitute { importas -iuS SYSTEMD_SYSUPDATE_PATH importas -iuS tmpdir } -if { $SYSTEMD_SYSUPDATE_PATH --definitions=${tmpdir} update } +if { + forx -x 0 _ { 1 2 3 4 5 } + if -nt { $SYSTEMD_SYSUPDATE_PATH --definitions=${tmpdir} update } + foreground { sleep 1 } + exit 1 +} # [ and ] are allowed in update URLs so that IPv6 addresses work, but # they cause globbing in the curl command-line tool by default. Use --globoff # to disable this feature. -- 2.51.0