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

Signed-off-by: Edgar Lee <edgarhinshunlee@gmail.com>
(cherry picked from commit 14c6c63b30)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/9469/head
Edgar Lee 2024-01-26 22:49:37 -05:00 committed by Brad Davidson
parent 865b454a05
commit 0259b8e535
1 changed files with 0 additions and 5 deletions

View File

@ -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{