Merge pull request #1075 from giuseppe/rootless-no-symlinks-into-storage-path

rootless: fix usage on Fedora Silverblue/CoreOS
This commit is contained in:
Daniel J Walsh
2018-07-13 14:15:54 -04:00
committed by GitHub
7 changed files with 85 additions and 48 deletions

View File

@@ -29,13 +29,13 @@ func main() {
debug := false
cpuProfile := false
became, err := rootless.BecomeRootInUserNS()
became, ret, err := rootless.BecomeRootInUserNS()
if err != nil {
logrus.Errorf(err.Error())
os.Exit(1)
}
if became {
os.Exit(0)
os.Exit(ret)
}
if reexec.Init() {