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 0726012375; Thu, 27 Nov 2025 20:27:03 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 241C312368; Thu, 27 Nov 2025 20:27:00 +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-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) by atuin.qyliss.net (Postfix) with ESMTPS id 6676212364 for ; Thu, 27 Nov 2025 20:26:58 +0000 (UTC) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 410371D005B7; Thu, 27 Nov 2025 15:26:56 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 27 Nov 2025 15:26:56 -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=1764275216; x= 1764361616; bh=/fzGxypr+ErxmSbjGTtA141lvwVSqQSClJ+Kb89yrIQ=; b=U 3S8Ia98TkSUAH0IP2NN27uER03zXym090D7e0DWgz8R94tZ/SV7u80DNTd2mc9Rk UiFOFq4+1zx68HtU+I8IKhJbpWw7p4eemztrXf+yZzoqNLeKtT3Tg7eayMHhFVvv lzxv2Cvk6N/gHex7m94C/DPfN62FVd6h85zVFBGDZUBuE8sHWZPGJaKWy0Zq0kIJ PBhJYEdrbCbJltx5dQb5mz4VP1zl7+17jvCnFXGuMFsMIw9ao3l+CMEw+xPE2Jsm JWpRoZItCJrybOuJUX9Qoa4OkBdoIDmrTJGArPNmVtlcpPFQ4Orn9R6bbLucUmcV 8pvTypK/ef80ImLXXOSqQ== 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=1764275216; x=1764361616; bh=/ fzGxypr+ErxmSbjGTtA141lvwVSqQSClJ+Kb89yrIQ=; b=r6GScZsG92iS1rErm hGo0RxcckAbnWZfC3KVTPu3aL1trLtXqyrTtOHfFfznXgw2sNFzlyQT6lo3m/1Pm jj/th+2GIW4mT2yPXI3V8xD/V2tDjnzaQ3cH1oQURLSjw3KTURZJs0KuNKc9HUNn 7KhSEhysswd5tRUNKLFYKyw/nOv8H4h4dKWiEtkNEa4d2kABqT7urR4E5t+QtpdL /4foF/wRHM4mYX6ifCq9rGSoKkDrMSOTh6H5FiOsvpwZpBQCzsQryAKyShpOZdSR zUPA254z3MxOabX8cHCx2Kmg2bsMV2FEknqidv/h4qCIPEy/y3rTJt1xJvyHYhaE kS+9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeekudekucetufdoteggodetrf 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; Thu, 27 Nov 2025 15:26:55 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id B2EDE2BB1ADA; Thu, 27 Nov 2025 21:26:53 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH v3 2/3] img/app: run Flatpak applications Date: Thu, 27 Nov 2025 21:23:13 +0100 Message-ID: <20251127202311.42422-5-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251127202311.42422-2-hi@alyssa.is> References: <20251127202311.42422-2-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: R7CBNNIFTCKXFVON4OAKPTJYO6RQ6YJP X-Message-ID-Hash: R7CBNNIFTCKXFVON4OAKPTJYO6RQ6YJP 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 --- v3: no changes v2: https://spectrum-os.org/lists/archives/spectrum-devel/20251124194846.16338-3-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 6490ac2..c1a1706 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