Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
It is necessary to activate the standard kernel features
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Tue Nov 29, 2022 5:19 pm    Post subject: It is necessary to activate the standard kernel features Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Tue Nov 29, 2022 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Tue Nov 29, 2022 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Tue Nov 29, 2022 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Tue Nov 29, 2022 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Tue Nov 29, 2022 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Tue Nov 29, 2022 6:19 pm    Post subject: Reply with quote

elover,

Code:
 -*-
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
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Tue Nov 29, 2022 6:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
elover,

Code:
 -*-
means that the state is forced by another option.


Okay, I didn't know that
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Tue Nov 29, 2022 6:21 pm    Post subject: Reply with quote

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 ... 8)
Back to top
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 159
Location: Spain

PostPosted: Tue Nov 29, 2022 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Nov 29, 2022 8:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum