New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: System extensions from Flatpak #5806
Comments
I think the distro should set the symlinks up like this
and also set the ¹ We don't have a config file yet but it could look like this, e.g., in
|
About building: If static binaries or custom library paths are troublesome or would bloat the size, one can also ship a small bwrap wrapper script in the sysext image ( FYI: I've explored rebundling non-static binaries into sysext images with two approaches, one is ELF patching, one is using a full chroot with bwrap: flatcar/sysext-bakery#74 For an MVP the ELF patching approach could be helpful but in the end it would be nice to avoid the duplication in Flatpak. Edit: If the Flatpak chroot is available via OSTree one could also point bwrap there? Or even do |
Checklist
Suggestion
This is meant to be a tracking issue for implementing system extensions from Flatpak.
In particular, we can, without much changes to Flatpak (potentially just
triggers
) extend the host system from a--system
installation using modernsystemd-sysext
features.I've laid out the gist of this at https://blogs.gnome.org/chergert/2024/05/07/system-extensions-from-flatpak/ which shows a prototype of things working for Sysprof. It allows a
/usr/libexec/sysprofd
and associated infrastructure to be provided by a Sysprof Flatpak and integrated into the host usingsystemd-sysext
.Some notable things to work out:
selinux=0
. Presumably this will result in improving selinux policies./usr
after asystemd-sysext merge
. This may be handled by systemd-sysext: Implement optional mutability for extensions systemd/systemd#31000/var/lib/extensions
for apps (honestly runtimes could too) containing extensions.Though if the trigger bits were implemented it would basically work on GNOME OS out of the box.
The text was updated successfully, but these errors were encountered: