mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Merge pull request #1075 from giuseppe/rootless-no-symlinks-into-storage-path
rootless: fix usage on Fedora Silverblue/CoreOS
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user