-
|
I'm using blue-build in a weekly GH action to build on top of Aurora. This week I noticed that it failed because I still have the v1 config format. While upgrading, I noticed there's no remove option in v2. With v1, I use the remove option to clean up some flatpaks that come with Aurora I don't want. Is there a way to achieve this with v2 at all? That is, to prevent a previous layer from installing some flatpaks. I know I have the option of adding |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The problem here is that Flatpaks, without special extra trickery, cannot be installed at build-time or into a layer of a custom image. This would require setting a custom Flatpak install root, and the Flatpaks installed this way would not be removable by users. As such, most images install Flatpaks in either or both of these ways:
(1) is what most ublue images use, and it works well with public images since it is unsurprising to users; no removed system Flatpaks get re-installed automatically, and especially no manually added Flatpaks are removed automatically. (that is not to say that both methods could be useful for both use cases) I consider automatic Flatpak removal on boot as it was implemented in v1 a possible anti-feature. If your custom image has multiple users, removing Flatpaks from their systems on boot would not be a good user experience for the simple reason that you cannot know if the user was using that app or not. If you set a Flatpak to remove on each boot, and later a user realizes they need it and install it themselves, that manually installed Flatpak would also get removed. An image maintainer of an image with multiple users should carefully consider their options before deciding to ship such a script. If you are the only user (or it at least is the case that you know how every one of your installations is being used), on the other hand, you can be more reckless. In this case, you could easily ship a script or a boot service to remove unnecessary Flatpaks from all your installations, or just manually remove them when you decide you don't need them. Looking at the Aurora repo, it seems to me that it is using method 1 only, but correct me if I'm wrong. Regardless, here are some suggestions:
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the detailed response! While I do sometimes like to watch computers fight, they're usually more roomba-shaped in that case! 😆 I hadn't yet considered using something other than modules to solve this issue, so after some digging in the Aurora repo, it seems they're shipping a text file at |
Beta Was this translation helpful? Give feedback.
The problem here is that Flatpaks, without special extra trickery, cannot be installed at build-time or into a layer of a custom image. This would require setting a custom Flatpak install root, and the Flatpaks installed this way would not be removable by users.
As such, most images install Flatpaks in either or both of these ways:
ujustrecipe to install default Flatpaks manually(1) is what most ublue images use, and it works well with public images since it is unsurprising to users; no removed system Flatpaks get re-installed automaticall…