mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
[NO TESTS NEEDED] Drop Warning to Info, if cgroups not mounted
If I run podman within a container without /sys/fs/cgroups mounted, we get this warning, which the user can not do much about. I don't see a reason for requiring this warning to show by default, so we should drop it to Info. User can not do anything about it either, and code works well with the somewhat expected error. Helps fix: https://github.com/containers/podman/issues/9753 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -67,7 +67,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
|
||||
if os.Geteuid() == 0 {
|
||||
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
|
||||
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 {
|
||||
conf, err := ic.Config(context.Background())
|
||||
|
Reference in New Issue
Block a user