Description of problem: Systemd JoinControllers argument does not work Version-Release number of selected component (if applicable): 195-6.fc18 How reproducible: Always Steps to Reproduce: 1. Edit /etc/systemd/systemd.conf and add: JoinControllers=memory,cpu,cpuacct 2. Reboot 3. Actual results: mount command lists: /sys/fc/cgroup/cpu,cpuacct /sys/fc/cgroup/memory Expected results: /sys/fc/cgroup/memory,cpu,cpuacct Additional info:
My guess is the following is happening here: Dracut (our initrd) is nowadays running systemd. This systemd will later on serialize its state and transition into the main system's systemd, which will deserialize the state and continue. Now, the initrd systemd will mount all cgroup file systems. After the transition they won't be remounted (not sure the kernel would even allow us to). That means the only /etc/systemd/systemd.conf taking effect with its cgroup mount setting is the one from the initrd. And you change the one from the main one. Not really sure what we could do about this. Asking for a rebuild of the initrd each time this config is changed sounds a bit too much... Kay, Harald, ideas?
It is actually a kind of "early boot config", which we need in the initramfs already, and I don't have a convincing idea how to work around that later. I think we should just document, that the initrd needs to be rebuilt in that case. Maybe even a comment in the default config file.
OK, i turned this into a documentation issue to fix then.
Documented upstream: http://cgit.freedesktop.org/systemd/systemd/commit/?id=e5e991a11c7749f8cb424e99ca4206264b0cf836
Will RHEL also require the initrd rebuild once these changes make it into RHEL?
Sure, there is no difference between Fedora and RHEL so far.
systemd-197-1.fc18.2 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/systemd-197-1.fc18.2
Package systemd-197-1.fc18.2: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-197-1.fc18.2' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1590/systemd-197-1.fc18.2 then log in and leave karma (feedback).
Note that /etc/systemd/system.conf gets included in the initramfs only if generating a hostonly initramfs. Couldn't we umount and re-mount the controllers if a mismatch in the JoinControllers configuration is detected after switching to the real root?
Package initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing initscripts-9.42.2-1.fc18 systemd-197-1.fc18.2' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1590/initscripts-9.42.2-1.fc18,systemd-197-1.fc18.2 then log in and leave karma (feedback).
initscripts-9.42.2-1.fc18, systemd-197-1.fc18.2 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.