On 02/08/2019 04:54, Ken Moffat via blfs-dev wrote: > First, the good news: > > On intel (haswell, built-in graphics) I've got Xorg working as > expected, without the suid settings. > > However, I had a bit of fun and games getting mountcgroupfs to > start. > > I'd got CONFIG_CGROUPS CONFIG_INOTIFY_USER and CONFIG_FHANDLE > already all set to Y. But when I tried to start mountcgroupfs it > failed: > > Mounting cgroup file systems: /sys/fs/cgroup[19411.965304] cgroup1: Need name > or subsystem set > mount: /sys/fs/cgroup: wrong fs type, bad option, bad superblock on cgroup, > missing codepage or help > er program, or other error. > mkdir: cannot create directory '/sys/fs/cgroup/unified': No such file or > directory > /sys/fs/cgroup/unifiedmount: /sys/fs/cgroup/unified: mount point does not > exist. > > After googling a little, I rebuilt the kernel, adding the following > options under the Control Groups menu: > > CONFIG_MEMCFG=Y > CONFIG_CGROUP_RDMA=Y > CONFIG_CGROUP_DEVICE=y > > Rebooted, and that was good enough. The question is, do I actually > _need_ all of these ? >
From my investigations, no... And the whole mountcgroupfs bootscript can be omitted, because elogind takes care of mounting those. OTOH, my investigations are limited to using startx with the default xinit clients... I mentioned this error (with less details) in the "xorg failure" thread. If no CONFIG_CGROUP_XXX is selected, the command for mounting the v1 cgroup fs returns an error, and the command for creating the "unified" dir fails too, because the fs is not mounted. Actually, from man cgroups(7), it is said that: "Note that on many systems, the v1 controllers are automatically mounted under /sys/fs/cgroup; in particular, systemd(1) automatically creates such mount points." Now, the question is whether elogind does those mounts too. But one thing is sure: without the mountcgroupfs script, whether or not some CONFIG_CGROUP_XXX is defined, Xorg runs. Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
