[Pkg-utopia-maintainers] Bug#830271: flatpak: Don't initialize system repo in postinst
Simon McVittie
smcv at debian.org
Tue Feb 14 14:07:37 UTC 2017
On Thu, 07 Jul 2016 at 12:05:26 -0700, Dan Nicholson wrote:
> Currently flatpak.postinst runs `flatpak remote-list --system` in
> order to initialize the system repo. I don't see any reason why this
> is needed, though.
Flatpak upstream (Alex) specifically asked me to do this. I think the
rationale was that guaranteeing that /var/lib/flatpak/exports/share
exists means it will be more reliable and efficient for desktop
environments to monitor it for new apps: they will be able to use
inotify rather than either not monitoring it or falling back to polling.
> My real problem is that we want to have /var/lib/flatpak/repo be a
> symlink to /ostree/repo so we can share the objects for the runtimes
> with the OS.
I suggest setting that up before installing flatpak, or deleting
/var/lib/flatpak/repo and replacing it when preparing your "golden
image" (if your OS is OSTree-managed, then the postinst won't run
on end-user systems anyway).
S
More information about the Pkg-utopia-maintainers
mailing list