mirror of https://github.com/containers/podman.git
Merge pull request #21017 from giuseppe/fix-podman-info-twice
abi: drop check for IsRootless()
This commit is contained in:
commit
26bcffd7a1
|
@ -30,10 +30,6 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, noMoveProcess bool)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !rootless.IsRootless() {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// do it only after podman has already re-execed and running with uid==0.
|
// do it only after podman has already re-execed and running with uid==0.
|
||||||
hasCapSysAdmin, err := unshare.HasCapSysAdmin()
|
hasCapSysAdmin, err := unshare.HasCapSysAdmin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue