Commit 0259b8e5 authored by Edgar Lee's avatar Edgar Lee Committed by Brad Davidson

Expose rootless state dir under ~/.rancher/k3s/rootless

Signed-off-by: 's avatarEdgar Lee <edgarhinshunlee@gmail.com> (cherry picked from commit 14c6c63b) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent 865b454a
...@@ -132,11 +132,6 @@ func createParentOpt(driver portDriver, stateDir string, enableIPv6 bool) (*pare ...@@ -132,11 +132,6 @@ func createParentOpt(driver portDriver, stateDir string, enableIPv6 bool) (*pare
return nil, errors.Wrapf(err, "failed to mkdir %s", stateDir) return nil, errors.Wrapf(err, "failed to mkdir %s", stateDir)
} }
stateDir, err := os.MkdirTemp("", "rootless")
if err != nil {
return nil, err
}
driver.SetStateDir(stateDir) driver.SetStateDir(stateDir)
opt := &parent.Opt{ opt := &parent.Opt{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment