mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #9858 from rhatdan/warn
[NO TESTS NEEDED] Drop Warning to Info, if cgroups not mounted
This commit is contained in:
@ -67,7 +67,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
|
|||||||
if os.Geteuid() == 0 {
|
if os.Geteuid() == 0 {
|
||||||
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
|
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnf("Failed to detect the owner for the current cgroup: %v", err)
|
logrus.Infof("Failed to detect the owner for the current cgroup: %v", err)
|
||||||
}
|
}
|
||||||
if !ownsCgroup {
|
if !ownsCgroup {
|
||||||
conf, err := ic.Config(context.Background())
|
conf, err := ic.Config(context.Background())
|
||||||
|
Reference in New Issue
Block a user