Saw no gentoo-sources component so i filed it under genkernel. # grep CONFIG_GENTOO_LINUX_INIT_SYSTEMD .config CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y >>> Running pre-merge checks for sys-apps/systemd-226-r2 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/4.4.21-gentoo/build * Found sources for kernel version: * 4.4.21-gentoo * Checking for suitable kernel configuration options... * CONFIG_DMIID: is not set when it should be. * CONFIG_TMPFS_XATTR: is not set when it should be. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems.
(In reply to C.J. Wijtmans from comment #0) > Saw no gentoo-sources component so i filed it under genkernel. Well, your guess was wrong. Next time, select "Gentoo Linux" when you are unsure.
(In reply to Mike Gilbert from comment #1) > (In reply to C.J. Wijtmans from comment #0) > > Saw no gentoo-sources component so i filed it under genkernel. > > Well, your guess was wrong. Next time, select "Gentoo Linux" when you are > unsure. Gentoo Linux=gentoo-sourceS?
(In reply to C.J. Wijtmans from comment #2) I'm not sure what you are asking.
(In reply to Mike Gilbert from comment #3) > (In reply to C.J. Wijtmans from comment #2) > > I'm not sure what you are asking. is gentoo-sources a "gentoo hosted" project or not? Nevermind it.
(In reply to C.J. Wijtmans from comment #4) > is gentoo-sources a "gentoo hosted" project or not? Nevermind it. No, gentoo-sources is a Gentoo package, and has no direct relation to genkernel.
also * CONFIG_TMPFS_POSIX_ACL: is not set when it should be. However i am guessing you only need CONFIG_TMPFS_XATTR and CONFIG_TMPFS_POSIX_ACL these if you build with +acl and CONFIG_DMIID for +kmod.
Comparing the systemd ebuild against the latest 4567_distro-Gentoo-Kconfig.patch, here is a complete list of the missing options. Under GENTOO_LINUX_UDEV: UNIX Under GENTOO_LINUX_INIT_SYSTEMD: DMIID IPV6 SECCOMP SECCOMP_FILTER TMPFS_XATTR TMPFS_POSIX_ACL
The question is though are acl and kmod really neccesary on a server that has all modules built in the kernel and does systemd really use acl automatically for tmpfs. pre-merge checks should not warn about these CONFIGs when acl and kmod are not selected.
If you are customizing your system to the point where you want to disable modules and ACL support, you are probably savvy enough to disable the GENTOO_LINUX_INIT_SYSTEMD option. It is safer to enable the options for users who don't know any better.
(In reply to Mike Gilbert from comment #9) > If you are customizing your system to the point where you want to disable > modules and ACL support, you are probably savvy enough to disable the > GENTOO_LINUX_INIT_SYSTEMD option. > > It is safer to enable the options for users who don't know any better. Right but in case i decide to do it manually it will still give me these pre-merge warnings even if i deselect kmod or acl.
(In reply to C.J. Wijtmans from comment #10) > Right but in case i decide to do it manually it will still give me these > pre-merge warnings even if i deselect kmod or acl. Create a separate bug for this please.
(In reply to Mike Gilbert from comment #7) > Comparing the systemd ebuild against the latest > 4567_distro-Gentoo-Kconfig.patch, here is a complete list of the missing > options. > > Under GENTOO_LINUX_UDEV: > > UNIX > > Under GENTOO_LINUX_INIT_SYSTEMD: > > DMIID > IPV6 > SECCOMP > SECCOMP_FILTER > TMPFS_XATTR > TMPFS_POSIX_ACL The trunk was updated with these changes. Right now we maintain 4.8.X, 4.4, 4.1, 3.18, 3.12, 3.10 and 3.4. Which kernels should this be backported too?
(In reply to Mike Pagano from comment #12) > The trunk was updated with these changes. Right now we maintain 4.8.X, 4.4, > 4.1, 3.18, 3.12, 3.10 and 3.4. > > Which kernels should this be backported too? systemd supports kernels >= 3.12, so a backport to those versions would be great. Also, I found another recommended option in the systemd README: CONFIG_CHECKPOINT_RESTORE (for the kcmp() syscall) Could you add that to the config as well?
(In reply to Mike Gilbert from comment #13) > (In reply to Mike Pagano from comment #12) > > The trunk was updated with these changes. Right now we maintain 4.8.X, 4.4, > > 4.1, 3.18, 3.12, 3.10 and 3.4. > > > > Which kernels should this be backported too? > > systemd supports kernels >= 3.12, so a backport to those versions would be > great. > > Also, I found another recommended option in the systemd README: > > CONFIG_CHECKPOINT_RESTORE (for the kcmp() syscall) > > Could you add that to the config as well? commit 574ae42fb009b569a6054bc3622aad2ffe513195 Author: Mike Pagano <mpagano@gentoo.org> Date: Wed Nov 16 06:35:55 2016 -0500 Update gentoo kconfig patch adding CHECKPOINT_RESTORE for GENTOO_LINUX_INIT_SYSTEMD. See bug #598623 This is only on trunk as of this writing, I'll start moving it to kernels >= 3.12
Reading systemd's README file, I think these should be added too: > udev will fail to work with the legacy sysfs layout: > CONFIG_SYSFS_DEPRECATED=n > > Legacy hotplug slows down the system and confuses udev: > CONFIG_UEVENT_HELPER_PATH="" > > Userspace firmware loading is not supported and should > be disabled in the kernel: > CONFIG_FW_LOADER_USER_HELPER=n
I'm going to hold off until Mike G reviews these config settings and gives me the final list. Doing this piecemeal is not really efficient.
(In reply to Lorenzo Porta (Vindex17) from comment #15) I was under the impression that it was not possible to de-select kernel options by toggling CONFIG_GENTOO_LINUX_INIT_SYSTEMD. This is why I intentionally did not include them.
(In reply to Mike Gilbert from comment #17) > (In reply to Lorenzo Porta (Vindex17) from comment #15) > > I was under the impression that it was not possible to de-select kernel > options by toggling CONFIG_GENTOO_LINUX_INIT_SYSTEMD. This is why I > intentionally did not include them. Adding "depends on !CONFIG_GENTOO_LINUX_INIT_SYSTEMD" to them can be an option
(In reply to Lorenzo Porta (Vindex17) from comment #18) That sounds a little fragile, and not worth the effort.
This is now either in all kernels >= 3.12 or committed in their respective genpatches branch for their next release.
Closing for now. If there are more/other things in the future that we should add for systemd please open a new bug.