diff --git a/src/storage/plugins/UdisksStorage.cxx b/src/storage/plugins/UdisksStorage.cxx index 98fb3dc5b..da1463da5 100644 --- a/src/storage/plugins/UdisksStorage.cxx +++ b/src/storage/plugins/UdisksStorage.cxx @@ -109,6 +109,12 @@ public: std::string MapUTF8(const char *uri_utf8) const noexcept override; AllocatedPath MapFS(const char *uri_utf8) const noexcept override { + try { + const_cast(this)->MountWait(); + } catch (...) { + return nullptr; + } + return mounted_storage->MapFS(uri_utf8); }