Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602664 - sys-apps/portage: FEATURES=cgroup disables itself silently
Summary: sys-apps/portage: FEATURES=cgroup disables itself silently
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 184128
  Show dependency tree
 
Reported: 2016-12-14 17:15 UTC by Zac Medico
Modified: 2022-04-06 14:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2016-12-14 17:15:06 UTC
When FEATURES=cgroup setup fails, it disables itself silently:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/AbstractEbuildProcess.py?h=portage-2.3.3#n121

It would be nice to get a warning message, so that users will have a clue that there's a problem to correct.
Comment 1 Mike Gilbert gentoo-dev 2016-12-14 18:21:18 UTC
> It would be nice to get a warning message, so that users will have a clue that there's a problem to correct.

It's worth noting that this would trigger a warning by default on systemd systems, since systemd mounts /sys/fs/cgroup read-only.

It really wants to be the only process to manage cgroups.
Comment 2 Zac Medico gentoo-dev 2016-12-14 19:38:52 UTC
(In reply to Mike Gilbert from comment #1)
> It's worth noting that this would trigger a warning by default on systemd
> systems, since systemd mounts /sys/fs/cgroup read-only.
> 
> It really wants to be the only process to manage cgroups.

That's a good point. It looks like the preferred way to cooperate with systemd is documented here:

https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/