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 F32171EA36; Thu, 13 Nov 2025 12:05:11 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id AD5141E9DE; Thu, 13 Nov 2025 12: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 fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) by atuin.qyliss.net (Postfix) with ESMTPS id D770B1E9DD for ; Thu, 13 Nov 2025 12:05:07 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id CA507140020E for ; Thu, 13 Nov 2025 07:05:06 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Thu, 13 Nov 2025 07:05:06 -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=fm2; t=1763035506; x= 1763121906; bh=qRalH4ugOR+I349vJCdlAter1mqS2mS/SdRc+mZnNU4=; b=T qgFEyVi9peDW8/0IbIlzdW4juhGd7yHoKs+fkOM6W26cY/fr2e4ESBrWPuEV/iEJ 5Wbu6hRg+h7kmZPXVsvyr+B2A5STjvFqUink0790z37xTdhOAajPq4egG1ru24+G dRU5kYuLaBKGi76d7Oi3TeLhzlGjbT2Zwuxx67zRBlZdeyeT0H2QLivVsAxIM4RG 68c4z7rn7DFAQYzJWJ5myPPtT6oinAnUqVeQuIjwMyrOAMPVx2W1S5DungkYGU25 eiy6Gcqs2IoYwuxqeLeA9FickxBYsaqSAXLaR8F2Vd0vFop+inqGfCrAe8HCbOwt pTCzrQEJSU2qbmAGkuhZA== 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= fm3; t=1763035506; x=1763121906; bh=qRalH4ugOR+I349vJCdlAter1mqS 2mS/SdRc+mZnNU4=; b=hFLXpIwOr8S2Hfmueu0LFBz4CI6O838l/tgkIMD6iQzC v84UYrVk12WBH+GkB0SmRHIJQsZetdwebkbe/c8J16WTRlRbi7bCxuz0FiFfOPoX e1wl747+v7LSeGt4a9qnTY/vrDUT5KVY4vBU++RsqwTuOBcNEpd6PuJBtCX2mH6G 1P1Okkgh/VQQaSVZ46BNs6v6WI7a61cRYzClucCr//m9tBIzQ3I+JncB2qu9ARNo XP3+i9UOJJeYfOp88ssXABcQJ9nKp0WYBjzTZ9mNivIVQSQEyn5r8zp5qrwMzMz8 4nz6qgqR8p4pjMRzvd7XmPK2c3IxVAhY21nweerhGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdeikeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekredtre dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhepgfefudekvdelieelledufeevheeglefggedvudejvddtff euueevffehleejkedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphhtthhopedupdhmohguvg epshhmthhpohhuthdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhumhdqohhsrdho rhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 13 Nov 2025 07:05:06 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 9A021139BE4A; Thu, 13 Nov 2025 13:05:05 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 2/3] img/app: run Flatpak applications Date: Thu, 13 Nov 2025 13:04:51 +0100 Message-ID: <20251113120452.65711-2-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251113120452.65711-1-hi@alyssa.is> References: <20251113120452.65711-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: HHYUA3S4TXRHUHSSNFV7Y4AMYQVJL3SA X-Message-ID-Hash: HHYUA3S4TXRHUHSSNFV7Y4AMYQVJL3SA 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 --- img/app/default.nix | 1 + img/app/file-list.mk | 1 + .../image/etc/flatpak/installations.d/extra.conf | 5 +++++ img/app/image/etc/s6-rc/app/run | 14 +++++++++++++- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 img/app/image/etc/flatpak/installations.d/extra.conf diff --git a/img/app/default.nix b/img/app/default.nix index 08cb2cd..ff402c1 100644 --- a/img/app/default.nix +++ b/img/app/default.nix @@ -49,6 +49,7 @@ let name = "vm-fhs-env"; targetPkgs = pkgs: appimageTools.defaultFhsEnvArgs.targetPkgs pkgs ++ [ pkgs.fuse + pkgs.flatpak (pkgs.busybox.override { enableMinimal = true; diff --git a/img/app/file-list.mk b/img/app/file-list.mk index 506ab7a..cacc24f 100644 --- a/img/app/file-list.mk +++ b/img/app/file-list.mk @@ -3,6 +3,7 @@ FILES = \ image/etc/dbus-1/session.conf \ + image/etc/flatpak/installations.d/extra.conf \ image/etc/fstab \ image/etc/init \ image/etc/mdev.conf \ diff --git a/img/app/image/etc/flatpak/installations.d/extra.conf b/img/app/image/etc/flatpak/installations.d/extra.conf new file mode 100644 index 0000000..448902b --- /dev/null +++ b/img/app/image/etc/flatpak/installations.d/extra.conf @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: 2025 Alyssa Ross + +[Installation "virtiofs"] +Path=/run/virtiofs/virtiofs0/config/flatpak diff --git a/img/app/image/etc/s6-rc/app/run b/img/app/image/etc/s6-rc/app/run index 601926b..4b3b8d6 100755 --- a/img/app/image/etc/s6-rc/app/run +++ b/img/app/image/etc/s6-rc/app/run @@ -1,6 +1,6 @@ #!/bin/execlineb -P # SPDX-License-Identifier: EUPL-1.2+ -# SPDX-FileCopyrightText: 2021, 2024 Alyssa Ross +# SPDX-FileCopyrightText: 2021, 2024-2025 Alyssa Ross export TMPDIR /run @@ -25,6 +25,18 @@ foreground { export LD_LIBRARY_PATH /lib64 /run/virtiofs/virtiofs0/config/run } + flatpak { + s6-envdir -fnL /run/virtiofs/virtiofs0/config/params + multisubstitute { + importas -iu id id + importas -iu arch arch + importas -iu branch branch + importas -iu commit commit + importas -iu runtime_commit runtime-commit + } + flatpak run --installation=virtiofs --arch=${arch} --branch=${branch} + --commit=${commit} --runtime-commit=${runtime_commit} $id + } nix { if { mount -t overlay -- 2.51.0