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 15774C7F4; Sun, 14 Dec 2025 01:45:53 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id A4842C7E5; Sun, 14 Dec 2025 01:45:50 +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-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) by atuin.qyliss.net (Postfix) with ESMTPS id DB24FC870 for ; Sun, 14 Dec 2025 01:45:49 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id B692CEC06A8; Sat, 13 Dec 2025 20:45:47 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 13 Dec 2025 20:45:47 -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=1765676747; x= 1765763147; bh=kio5+SzTeq3vEvvqXdcwPo0V37JaOb7jZslzdWqOWPE=; b=D VAspXzd6YRPEpESnBFO3qJQ76Vv0ydZlw1QznDJW2k+8oDfx8yQY73GCsuc0PQLp Ie+ZrbBAQGEQYKkM8YbImopMZmSIPdnOwmA5+slZSsC4y3V/5ZVJInsUYrhz6uZc JdWMlPMQ5AC1sivSRV/WOIPSbFai+l/wiutBKrvDkH9fNuFaollvfGXjxmjhMGse srlSpXF0fk9JIN6PAYzVkEG2Ftr1EAlanTfeT6zkQWM5wVsajtF+ViDhgy1YFAaa 74BxGhoZJ04+pKYMZ1SY6nbex9obqcRLMjgQdSy7jVGRi/CbEsTPU27Vw0rlNo0N GK0aV0DGapf/CE3hvCvbg== 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=1765676747; x=1765763147; bh=k io5+SzTeq3vEvvqXdcwPo0V37JaOb7jZslzdWqOWPE=; b=ft3OJEcz48lG8kFWZ 2VnOTjmLnLNu23xaMkHLEq4A3J/TPNTAXUqT0/jM16gYl9A5yjibjUChXV+6qZvo YwgNo4AEj+p/fs9/MG6hDFRSoT25+gY4mhJHTK8Q6sQR0IF9HqjzUOv6bbytba9f XegPPaZmOzKgygDAX14DhHPR0Zx2Ss6Au59khyxUHdbsTW9S2SljGSCDTFah/DZD kPWoq7nNaTgUMZ566OUzLRYnaSUBmtZ3mLboUUaidB6HCul++UDhEmv/97CTJP6r J8k6ZQiX7VNPEPK+/OcMOqA5435Z4NNwFh1228OE5nO2caPEsWj2Vepbx/1xi90a p+9tA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdeiiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeegueeiud eukeekiedvteffgeekudfhudevvdelvdekhfefieetkeduudejffefgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrd hishdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep uggvmhhiohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlse hsphgvtghtrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Dec 2025 20:45:47 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id A1FDB7BF7200; Sun, 14 Dec 2025 02:45:40 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH v2 3/7] host/rootfs: clean up obsolete tmp dirs on VM exit Date: Sun, 14 Dec 2025 02:42:28 +0100 Message-ID: <20251214014229.775825-6-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251214014229.775825-2-hi@alyssa.is> References: <20251214014229.775825-2-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: QHZM5YRS2ESFNLY776KKA4XZBNP26CQU X-Message-ID-Hash: QHZM5YRS2ESFNLY776KKA4XZBNP26CQU 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 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: Signed-off-by: Alyssa Ross --- v2: no change host/rootfs/image/usr/bin/run-appimage | 7 +++++-- host/rootfs/image/usr/bin/run-flatpak | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/host/rootfs/image/usr/bin/run-appimage b/host/rootfs/image/usr/bin/run-appimage index f62844f8..de851c52 100755 --- a/host/rootfs/image/usr/bin/run-appimage +++ b/host/rootfs/image/usr/bin/run-appimage @@ -57,7 +57,10 @@ if { mount --bind -- $diskdir disk } -importas -Siu id +multisubstitute { + importas -Siu diskdir + importas -Siu id +} piperw 4 3 background { @@ -76,4 +79,4 @@ fdclose 3 if { s6-instance-delete /run/service/vm-services $id } if { umount -R /run/vm/by-id/${id}/ns } -rm -r /run/vm/by-id/${id} /run/configs/${id} +rm -r -- $diskdir /run/vm/by-id/${id} /run/configs/${id} diff --git a/host/rootfs/image/usr/bin/run-flatpak b/host/rootfs/image/usr/bin/run-flatpak index 9a7ffa33..b47204c9 100755 --- a/host/rootfs/image/usr/bin/run-flatpak +++ b/host/rootfs/image/usr/bin/run-flatpak @@ -55,7 +55,10 @@ if { mount --bind -- $diskdir /run/fs/${id}/disk } -importas -Siu id +multisubstitute { + importas -Siu diskdir + importas -Siu id +} if { piperw 4 3 @@ -75,4 +78,4 @@ if { if { s6-instance-delete -- /run/service/vm-services $id } if { umount -R /run/vm/by-id/${id}/ns } -rm -r /run/vm/by-id/${id} /run/configs/${id} +rm -r -- $diskdir /run/vm/by-id/${id} /run/configs/${id} -- 2.51.0