From 9caf664fabc911419cc483125bf543c4550604c7 Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Thu, 18 Jun 2020 20:56:47 -0700 Subject: Add systemd units to sideload from hotplugged USBs Currently with the sideload implementation of offline updates you have to manually create a symlink to your USB drive to sideload from it, which is a regression compared to the previous implementation which scanned all mounted filesystems in OstreeRepoFinderMount in libostree. So this commit adds a few systemd units and a bash script so that any time a USB drive is plugged in and automatically mounted by udisks, a symlink to it is created in /run/flatpak/sideload-repos. When the drive is unplugged the symlink is removed. However this solution still has a lot of moving parts, so we may want to instead have libflatpak use GVolumeMonitor and find the mounted filesystems itself; see https://github.com/flatpak/flatpak/issues/3705 Fixes https://github.com/flatpak/flatpak/issues/3490 --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index ae872a16..ce6e33a5 100644 --- a/.gitignore +++ b/.gitignore @@ -48,7 +48,11 @@ flatpak-dbus-proxy permission-store-dbus.[ch] flatpak-system-helper xdg-desktop-portal -*.service +oci-authenticator/*.service +portal/*.service +session-helper/*.service +system-helper/*.service +tests/*.service flatpak.conf flatpak.env flatpak.sh -- cgit v1.2.1