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 210FD612; Mon, 01 Dec 2025 04:50:19 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id B1CCC586; Mon, 01 Dec 2025 04:50:16 +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-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) by atuin.qyliss.net (Postfix) with ESMTPS id 1F0B4474 for ; Mon, 01 Dec 2025 04:50:15 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id A6DC57A0165; Sun, 30 Nov 2025 23:50:12 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Sun, 30 Nov 2025 23:50:12 -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=1764564612; x= 1764651012; bh=vP5436NcK2hL3wl1DKsoZ9KX+fMamwBZLQpQbNF5OHI=; b=N Igspf2vgU7VPfClruIX1Ye+mYEfs9UmK6Him0wBBX/G0PeA8/xd6TUYll4DI39Ny GJv1L92vg0PEWQ6vD6Saen+7/jqDq2pIpi9BPo720fRuhi4HNT6CeubsP4VJQ8B4 883tD7geLSOxO1dWs0eVaLtXI20nz106qn6wXuSMtDW0VyXWNC4DG37zZYZkTkZr O9Dn0i6fJDUME0291OSNn8MNwuy2VWfWVOGxkeb+WXBMHobC1dwNpZi3xkuQ+Zpl lr7UfcO8sQFMR5ipgAoWHSOlZGkbX0qc5wxE7Y2bgaP59qShQwUiQXAtBoU219XG M8fIYRiA7r3KKTy/gLPPw== 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=1764564612; x=1764651012; bh=v P5436NcK2hL3wl1DKsoZ9KX+fMamwBZLQpQbNF5OHI=; b=LJKcyTcWBbYUkB/th ozyoq+1p1l30KVC15RjdniHTdLgOIHHFXXtWeSkCztKfRpwr8v3+0taJ2xWnZyP1 KQoqRhg5RU1ELlj8u4Q4Bi9T+STk11OP9YKcTuq2zW+7NrqdB7wQpNoQ8dQghmlh QCDB2NR+W01vS56rdctrKF0UZF9WoNYmWmU2UrQWL91Ar/uiMVBdLB3mtzaPX11f x5bcligqUL4C//zxIxO+sPdX/6Uq4en9flP1G/qSyabWYLuOL1yjiG9FWF+c1BCP KgP/+OzNF8JaRKzOAo5LERk7Hki3PeIgJ2Bc3KhWTKklqnEUm2cArZOe/Vs6Y35o IwMwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvheeijeelucetufdoteggodetrf 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; Sun, 30 Nov 2025 23:50:12 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id EAB8D3F0B357; Mon, 01 Dec 2025 05:50:10 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH v4 4/5] img/app: run Flatpak applications Date: Mon, 1 Dec 2025 05:45:22 +0100 Message-ID: <20251201044534.977524-7-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251201044534.977524-1-hi@alyssa.is> References: <20251201044534.977524-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 7Z4C3HXXSTJY6WO757FP7CNXPKMETT5Z X-Message-ID-Hash: 7Z4C3HXXSTJY6WO757FP7CNXPKMETT5Z 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 --- v4: no change v3: https://spectrum-os.org/lists/archives/spectrum-devel/20251127202311.42422-5-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