From 0259b8e535a1d90642bd5900d0a1f17bf900e95e Mon Sep 17 00:00:00 2001 From: Edgar Lee Date: Fri, 26 Jan 2024 22:49:37 -0500 Subject: [PATCH] Expose rootless state dir under ~/.rancher/k3s/rootless Signed-off-by: Edgar Lee (cherry picked from commit 14c6c63b308f11d4917bfc6249656174caeb64be) Signed-off-by: Brad Davidson --- pkg/rootless/rootless.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/rootless/rootless.go b/pkg/rootless/rootless.go index 97266d7eaf..f584e7b4a7 100644 --- a/pkg/rootless/rootless.go +++ b/pkg/rootless/rootless.go @@ -132,11 +132,6 @@ func createParentOpt(driver portDriver, stateDir string, enableIPv6 bool) (*pare return nil, errors.Wrapf(err, "failed to mkdir %s", stateDir) } - stateDir, err := os.MkdirTemp("", "rootless") - if err != nil { - return nil, err - } - driver.SetStateDir(stateDir) opt := &parent.Opt{