View previous topic :: View next topic |
Author |
Message |
elover Apprentice
Joined: 20 Nov 2019 Posts: 159 Location: Spain
|
Posted: Tue Nov 29, 2022 5:19 pm Post subject: It is necessary to activate the standard kernel features |
|
|
Hi, is it necessary to enable the standard kernel features (expert users) to use the init systemd? Looking in gentoo-kernel it is not enabled.
Last edited by elover on Tue Nov 29, 2022 6:27 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Tue Nov 29, 2022 5:24 pm Post subject: |
|
|
elover,
Not in the gentoo-sources kernel, no.
gentoo-sources has a Gentoo menu, that makes init system support a single choice, or two choices if you want support for both init system _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
elover Apprentice
Joined: 20 Nov 2019 Posts: 159 Location: Spain
|
Posted: Tue Nov 29, 2022 6:00 pm Post subject: |
|
|
NeddySeagoon wrote: | elover,
Not in the gentoo-sources kernel, no.
gentoo-sources has a Gentoo menu, that makes init system support a single choice, or two choices if you want support for both init system |
In the wiki https://wiki.gentoo.org/wiki/Systemd it says that the Configure standard kernel features (expert users) options must be enabled in the kernel, which are not enabled in gentoo-kernel kernel.
That's why I was surprised, since it is not active in gentoo-kernel, and systemd can be used without problems. Can I remove it from gentoo-sources? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Tue Nov 29, 2022 6:10 pm Post subject: |
|
|
As I read the Kconfig file, all four of those options will be default-enabled; setting EXPERT=y is only required to make them visible. |
|
Back to top |
|
|
elover Apprentice
Joined: 20 Nov 2019 Posts: 159 Location: Spain
|
Posted: Tue Nov 29, 2022 6:14 pm Post subject: |
|
|
Edit: I did not see the previous message
If you activate them, all this is activated.
│ [*] Enable 16-bit UID system calls │
│ [*] Multiple users, groups and capabilities support │
│ [*] sgetmask/ssetmask syscalls support │
│ [*] Sysfs syscall support │
│ -*- open by fhandle syscalls │
│ [*] Posix Clocks & timers │
│ [*] Enable support for printk │
│ [*] BUG() support │
│ [*] Enable ELF core dumps │
│ [*] Enable PC-Speaker support │
│ [*] Enable full-sized data structures for core │
│ [*] Enable futex support │
│ -*- Enable eventpoll support │
│ -*- Enable signalfd() system call │
│ -*- Enable timerfd() system call │
│ -*- Enable eventfd() system call │
Last edited by elover on Tue Nov 29, 2022 6:19 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Tue Nov 29, 2022 6:14 pm Post subject: |
|
|
elover,
If use do not use gentoo-sources,
Code: | [*] Configure standard kernel features (expert users) --->
[*] open by fhandle syscalls
[*] Enable eventpoll support
[*] Enable signalfd() system call
[*] Enable timerfd() system call | are required.
With gentoo-sources,
Code: | Gentoo Linux --->
Support for init systems, system and service managers --->
[*] systemd |
takes care of all the systemd related kernel settings.
That need not set Configure standard kernel features (expert users) to change the defaults inside the menu. It all depends on hom the Kconfig files are written. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Tue Nov 29, 2022 6:19 pm Post subject: |
|
|
elover,
means that the state is forced by another option. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
elover Apprentice
Joined: 20 Nov 2019 Posts: 159 Location: Spain
|
Posted: Tue Nov 29, 2022 6:20 pm Post subject: |
|
|
NeddySeagoon wrote: | elover,
means that the state is forced by another option. |
Okay, I didn't know that |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4152 Location: Bavaria
|
Posted: Tue Nov 29, 2022 6:21 pm Post subject: |
|
|
elover wrote: | Can I remove it from gentoo-sources? |
Yes ... IF you have enabled this:
Code: | Gentoo Linux --->
Support for init systems, system and service managers --->
[*] systemd |
If you want to know how this all works, do:
1. Look into the help of this systemd menu option. You will see: "SELECTS: ..." This means: By enabling this option you enable (automatically) many other options.
2. Change to this menu now:
Code: | General setup --->
[*] Configure standard kernel features (expert users) --->
...
-*- Enable eventfd() system call |
One of these entries is "Enable eventfd" and you see a -*- This means you cant change this option (try it) ... BECAUSE it was enabled by option "systemd". I dont have system and therefore it looks like this:
Code: | [*] Enable eventfd() system call |
3. If you look into the help of this option you will see a "SELECTED BY ..."
So, when you have enabled "systemd" in our Gento menu you dont need "Expert" because all settings "inside" will be maintained ... just invisible for you.
On the other side ... there is no reason to disable Expert ... |
|
Back to top |
|
|
elover Apprentice
Joined: 20 Nov 2019 Posts: 159 Location: Spain
|
Posted: Tue Nov 29, 2022 6:27 pm Post subject: |
|
|
Now it's clearer, I could see that it was not in gentoo-kernel active and systemd works fine, it's just because I didn't know the last thing you explained.
Well, 10 years with gentoo and I didn't know that about the kernel. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Nov 29, 2022 8:38 pm Post subject: |
|
|
The systemd ebuild checks that required kernel options are enabled:
Code: | local CONFIG_CHECK=" ~BINFMT_MISC ~BLK_DEV_BSG ~CGROUPS
~CGROUP_BPF ~DEVTMPFS ~EPOLL ~FANOTIFY ~FHANDLE
~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SIGNALFD ~SYSFS
~TIMERFD ~TMPFS_XATTR ~UNIX ~USER_NS
~CRYPTO_HMAC ~CRYPTO_SHA256 ~CRYPTO_USER_API_HASH
~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
~!SYSFS_DEPRECATED_V2"
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
...
check_extra_config
|
If kernel options are missing, you will get a warning message if you run "emerge --oneshot systemd" |
|
Back to top |
|
|
|