[Pkg-utopia-maintainers] Bug#830271: flatpak: Don't initialize system repo in postinst

Dan Nicholson nicholson at endlessm.com
Tue Feb 14 16:02:30 UTC 2017


On Tue, Feb 14, 2017 at 8:07 AM, Simon McVittie <smcv at debian.org> wrote:
> 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.

Yeah, I can see that use case.

>> 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).

Of course, we already do this. I just didn't see the usefulness in
initializing the repo since flatpak does that itself. Having it
nonexistent out of the box would allow me to detect that something was
wrong if the repo already existed.

Anyway, it's not a big deal. You can close this.

--
Dan



More information about the Pkg-utopia-maintainers mailing list