From 7255468e6584d8170924dfc5ffbde136e8cc6654 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 21 Jun 2019 12:49:23 +0200 Subject: rootless: enable linger if /run/user/UID not exists at least on Fedora 30 it creates the /run/user/UID directory for the user logged in via ssh. This needs to be done very early so that every other check when we create the default configuration file will point to the correct location. Closes: https://github.com/containers/libpod/issues/3410 Signed-off-by: Giuseppe Scrivano --- cmd/podman/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 04b1e80cf..435efd559 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -100,7 +100,7 @@ func initConfig() { } func before(cmd *cobra.Command, args []string) error { - if err := libpod.SetXdgRuntimeDir(""); err != nil { + if err := libpod.SetXdgRuntimeDir(); err != nil { logrus.Errorf(err.Error()) os.Exit(1) } -- cgit v1.2.3-54-g00ecf