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 A303943E8; Mon, 01 Dec 2025 17:09:41 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 9682C43D7; Mon, 01 Dec 2025 17:09:38 +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 855044374 for ; Mon, 01 Dec 2025 17:09:37 +0000 (UTC) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id BCC861400277; Mon, 1 Dec 2025 12:09:35 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Mon, 01 Dec 2025 12:09:35 -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=1764608975; x= 1764695375; bh=JbrNUn/ZfEf4R1iGAf+zoBNTvezIJtUmEyRHKItgRb0=; b=l lLZ9ylPFpYwZbXPxdtINPfvSkICwhicTKrjzSOCybABtSg7wZw2zOsTVJ+sv/9TS KksN8vxjkLghUFgb1izxjTSHtryMWo3coZUkNlPVy733Z5JhFfEAizWd758eXzlP SGTqhkGr6xu4HQ3WN+ES3FouIbBb07mJRrhfNZ5cINI75iGakGZS2O8Q24Nt9BQL aTZ3kscep5WeR0cMj4F64wsOblD7QixETa3joW/OmgL3bdgYkwAHCVX9RFEyUL0v ik0qo3RZZUzMiFXNc26NdHyagCx60oD48l90fl4ku4ePK3AycuhK1+7IVpaQmn94 iQlZWQP2kmieILgZHckYQ== 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=1764608975; x=1764695375; bh=J brNUn/ZfEf4R1iGAf+zoBNTvezIJtUmEyRHKItgRb0=; b=M3y+gSxemLGDkicgx dB8zVMhWNSeU/iOypRHWRYm6NSxpYb2o+9xHJPqsKIaeGpHuh6iBy5CGfYW2yS7L QVaG1pPot269egHA9frj1GzBxTosiGXcDOiu1+6wPVtgt3birkjMhObxP5BF2UgP XAm3h1IEjdQaUsfu6cAE6+SM742JVr91NMN6MwDhBEgTNpsLCWT0WUthNXrz9TcF LIog+MeRBDYFZ4J6iRKFylf+swLY8cCNLg6BcQ48Bz4rwmOCJizi+6x7T/7HM7+2 GMnfddmaPbZciSt10GVxTQwPLIoEzG0w/7C1yoNlKH4rqdxdviVdwjc5FFQDnx2/ I6QqA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvheekvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptehlhihsshgr ucftohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnheptefhge eiffffleetudeuledtleeutefhueetveeiteeugfegfeduvdelgfdtfedvnecuffhomhgr ihhnpehsphgvtghtrhhumhdqohhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghmihhosggvnhhouh hrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqdho shdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Dec 2025 12:09:35 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 5235D3FB5115; Mon, 01 Dec 2025 18:09:29 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH v5 5/6] img/app: run Flatpak applications Date: Mon, 1 Dec 2025 18:04:07 +0100 Message-ID: <20251201170458.4186683-9-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251201170458.4186683-1-hi@alyssa.is> References: <20251201170458.4186683-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: G37D5HDBT32V24V7XMS4PEJUUW4RTV73 X-Message-ID-Hash: G37D5HDBT32V24V7XMS4PEJUUW4RTV73 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 --- v5: no change v4: https://spectrum-os.org/lists/archives/spectrum-devel/20251201044534.977524-7-hi@alyssa.is/ 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 1eb3c9b..71e6fa0 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 6934975..4fbdec2 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/mdev.conf \ image/etc/mdev/iface \ 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