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 BAC7F9C45; Sat, 13 Dec 2025 16:17:17 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 44B2B9C0F; Sat, 13 Dec 2025 16:17:13 +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 fhigh-a5-smtp.messagingengine.com (fhigh-a5-smtp.messagingengine.com [103.168.172.156]) by atuin.qyliss.net (Postfix) with ESMTPS id 312CD9C0A for ; Sat, 13 Dec 2025 16:17:12 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0E7D21400097 for ; Sat, 13 Dec 2025 11:17:10 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sat, 13 Dec 2025 11:17:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=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=1765642630; x= 1765729030; bh=sJqrGMXTzzk+Wb/xFGKLghuOrTsTUAJBuKOPYsb0SBk=; b=a hwUO3ZttfDRkNb8Wdag2Bri235DJt0FLNdbOqv2lf3a+AnpII2q73g0Rjber5SOC 0B7ZmOGh3FKepNISYTaw94bECPFofWh9RRURPYEHwy/znR+moUWlk6KLPEun2cdU I0Qpc814uNYAE01FkcMZFsi7kQ0FBouEdkoGwSUGda7g3/Ivf9v3cXIBZkeAUWfE +XQqQAXMVrZHan/oU8eEj0z5HwjktWYBT2+59qbQSJLBOJI1rF/P74AIosrg6FAM OPXhlXhznohFzs1sbab9OoSnyf/66UeAurAwgj3r/NXfOW7cgwciqqmZTqBFatgq ZuDX0sQxzEz1QkHixLkgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1765642630; x=1765729030; bh=sJqrGMXTzzk+Wb/xFGKLghuOrTsT UAJBuKOPYsb0SBk=; b=LYCEsBaca5cHqyQuTRHSdCrdgCY6ShjxwwvnnDcwqfPJ N39NmADDeEL+42bZ0mmi0t1V8d79DgPp+a19mj6zZzEmz7Oc63BFp7XHfWXeRL0b CHIFFrYRKVQ+cJwggRg5VpJ/wyTwjzAVSPShVuShn1gpuN6yDLyWIRPtmoUF+RWG dMMWyl3W6hDEEtoRyYQO6MEoZRBppYJ+is/I8B+SYvKHXh6f2tX4VsQ/ELqZv6Ed oW0AMR7dxNl9V7nvA0KMC94BF/y3D8CrEjc+bX2HIDpq/EqXkVl01JV7eDXioyJ4 lL1+B0h07uKbDRGDNOeYd2nmDh/4URSMxlsuieO0Ww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefudehvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertdertd dtnecuhfhrohhmpeetlhihshhsrgcutfhoshhsuceohhhisegrlhihshhsrgdrihhsqeen ucggtffrrghtthgvrhhnpefgfedukedvleeileeludefveehgeelgfegvddujedvtdffue euveffheeljeekvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehhihesrghlhihsshgrrdhishdpnhgspghrtghpthhtohepuddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqdhoshdrohhr gh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 13 Dec 2025 11:17:09 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id A5FA97814CB0; Sat, 13 Dec 2025 17:16:58 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 3/4] host/rootfs: clean up obsolete tmp dirs on VM exit Date: Sat, 13 Dec 2025 17:16:36 +0100 Message-ID: <20251213161637.510752-3-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251213161637.510752-1-hi@alyssa.is> References: <20251213161637.510752-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: SH4HXIDL4MAFBEDWU37ERNGB25IJLLUD X-Message-ID-Hash: SH4HXIDL4MAFBEDWU37ERNGB25IJLLUD 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 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 --- 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