• [gentoo-user] genkernel's new configs not used?

    From =?utf-8?B?Y2F2ZW1hbiDYsdmO2KzZj9mE2@21:1/5 to All on Fri Dec 31 17:30:02 2021
    i thought to re-compile my kernel with some new
    options. so i did:

    sudo genkernel --menuconfig all

    new kernel came, and was used normally as one
    would expect across reboots.

    then i periodically update the system by:

    sudo emerge -avDuNt --quiet-build=y --keep-going=y @world

    problem is: when the gentoo-source kernel gets
    updated by emerge, it does not use my genkernel's
    new configs.

    questions:
    1. What's going on?
    2. How to fix it?

    ty,
    cm.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to All on Fri Dec 31 20:00:02 2021
    On 12/31/21 11:28, caveman رَجُلُ الْكَهْفِ 穴居人 wrote:
    i thought to re-compile my kernel with some new options. so i did:
    sudo genkernel --menuconfig all
    new kernel came, and was used normally as one would expect across reboots.
    I suspect you omit certain details, such as running grub-mkconfig or
    otherwise updating your grub (or other bootloader) configuration prior
    to the first reboot.
    then i periodically update the system by:
    sudo emerge -avDuNt --quiet-build=y --keep-going=y @world
    problem is: when the gentoo-source kernel gets updated by emerge, it does not use my genkernel's new configs.

    questions:
    1. What's going on?
    2. How to fix it?
    Unless I'm missing something about what you are doing, simply emerging a
    new gentoo-kernel version does nothing except install the sources, it
    doesn't build the new kernel.  You would still need to run genkernel
    again for that new version.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?B?Y2F2ZW1hbiDYsdmO2KzZj9mE2@21:1/5 to Jack on Sat Jan 1 05:50:01 2022
    On Friday, December 31st, 2021 at 6:52 PM, Jack <ostroffjh@users.sourceforge.net> wrote:

    .... You would still need to run genkernel
    again for that new version.

    so, no auto-migration for configs? i thought
    configs used to migrate automatically.

    basically i'm trying to avoid building some
    modules.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From thelma@sys-concept.com@21:1/5 to All on Sat Jan 1 06:30:01 2022
    On 12/31/21 21:43, caveman رَجُلُ الْكَهْفِ 穴居人 wrote:
    On Friday, December 31st, 2021 at 6:52 PM, Jack <ostroffjh@users.sourceforge.net> wrote:

    .... You would still need to run genkernel
    again for that new version.

    so, no auto-migration for configs? i thought
    configs used to migrate automatically.

    basically i'm trying to avoid building some
    modules.

    When it comes to kernel nothing is fully automatic.

    Go though these commands:

    cd /usr/src
    rm linux

    eselect kernel list
    eselect kernel set #

    or
    ln -sfn linux-new_kernel-gentoo linux

    cd linux
    cp ../linux-old_kernel/.config .
    make oldconfig
    [just keep hitting enter]
    make menuconfig

    You are not done yet!

    1.) At this point you must copy new kernel to your boot directory.
    2.) emerge --ask -vq @module-rebuild rebuild
    3.) must run to update grub menu entries eg.:
    # grub-mkconfig -o /boot/grub/grub.cfg

    4.) What else did I miss? (somebody correct me).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to thelma@sys-concept.com on Sat Jan 1 09:40:01 2022
    On Fri, 31 Dec 2021 22:21:53 -0700, thelma@sys-concept.com wrote:

    On 12/31/21 21:43, caveman رَجُلُ الْكَهْفِ 穴居人 wrote:
    On Friday, December 31st, 2021 at 6:52 PM, Jack <ostroffjh@users.sourceforge.net> wrote:
    .... You would still need to run genkernel
    again for that new version.

    so, no auto-migration for configs? i thought
    configs used to migrate automatically.

    basically i'm trying to avoid building some
    modules.

    When it comes to kernel nothing is fully automatic.

    Go though these commands:

    cd /usr/src
    rm linux

    eselect kernel list
    eselect kernel set #

    or
    ln -sfn linux-new_kernel-gentoo linux

    cd linux
    cp ../linux-old_kernel/.config .
    make oldconfig
    [just keep hitting enter]

    If you just want to accept the defaults for all new options, use "make olddefconfig".

    make menuconfig

    You are not done yet!

    1.) At this point you must copy new kernel to your boot directory.
    2.) emerge --ask -vq @module-rebuild rebuild
    3.) must run to update grub menu entries eg.:
    # grub-mkconfig -o /boot/grub/grub.cfg

    4.) What else did I miss? (somebody correct me).


    Compiling the kernel and modules? Replace 1 with

    make all modules_install install

    There's also the matter of the initramfs, one of the main reasons people
    use genkernel, although I prefer dracut for this.


    --
    Neil Bothwick

    "Be strict when sending and tolerant when receiving."
    RFC 1958 - Architectural Principles of the Internet - section 3.9

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmHQEzYACgkQ92eFu0QS MJh+pxAAtihreDfUgOQ3jyaSTImN2Un3RZxj2bYSolECBcmycL+YSlnF29pVCdFe rUpfCKhcvym7JDuFdHQi54UNr4FoFkKtuASNatjyhHZfO30PgnV49hEALPm5W2Kx IECf6qOJigz/MydXTYaJ9vbYnoBgw3/6xHygJV1PPnbf4TKQJMDK7tDgM7VAtTIa vDpZNOfOEHy+qY/skoAr93PjutnEe08pJRwITQ21cvaAXarj+CB5l6GQ+DBKxnmq Rso4VuSbrqcRIVdHSx/1f3OxaAsVXC65nGm8XhSUhSX18XNNrxh1OyX/zjM9uULe KeHJk9YrgoUglQVhcBeP0dq106BBGteYjFanA23psZCqU0FSR3sVDfoW6rcUIrnQ S/bvogLXmQcffwTAA8WxK8yfIiT3M/pn9w/VnICaUUTuFj+rIYw1sn/cyuububmR JiOlPisHsvdg4SL/vf64Mif/3HTda/1tCdytooB8Docb6ai4nN9St1v8loJc2wLD wkbWbfAflDWQuAVTi0+N0QOXxFvrtBDEmM3NQbxvkjzcBxML90G32qTqslik4ky/ kLga+Ksph0LBWpt4+jPyH7YUKWBziIdjveh42MOv5AuBMmQMNYeZqdZh1j87nbAJ TiEcsEmsiSgzIBzM8zJLfWOx4Dt8Wtn/NOVSfdPQaYhuL6l2tYs=
    =XKmf
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
  • From Wols Lists@21:1/5 to Neil Bothwick on Sat Jan 1 16:50:01 2022
    On 01/01/2022 08:39, Neil Bothwick wrote:
    On Fri, 31 Dec 2021 22:21:53 -0700, thelma@sys-concept.com wrote:

    On 12/31/21 21:43, caveman رَجُلُ الْكَهْفِ 穴居人 wrote: >>> On Friday, December 31st, 2021 at 6:52 PM, Jack
    <ostroffjh@users.sourceforge.net> wrote:
    .... You would still need to run genkernel
    again for that new version.

    so, no auto-migration for configs? i thought
    configs used to migrate automatically.

    basically i'm trying to avoid building some
    modules.

    When it comes to kernel nothing is fully automatic.

    Go though these commands:

    cd /usr/src
    rm linux

    Does that work? Or do you need to use "unlink"? And anyway, the next few commands make it redundant.

    eselect kernel list
    eselect kernel set #

    or
    ln -sfn linux-new_kernel-gentoo linux

    cd linux
    cp ../linux-old_kernel/.config .
    make oldconfig
    [just keep hitting enter]

    If you just want to accept the defaults for all new options, use "make olddefconfig".

    make menuconfig

    You are not done yet!

    1.) At this point you must copy new kernel to your boot directory.
    2.) emerge --ask -vq @module-rebuild rebuild
    3.) must run to update grub menu entries eg.:
    # grub-mkconfig -o /boot/grub/grub.cfg

    4.) What else did I miss? (somebody correct me).


    Compiling the kernel and modules? Replace 1 with

    make all modules_install install

    There's also the matter of the initramfs, one of the main reasons people
    use genkernel, although I prefer dracut for this.


    until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT,
    which doesn't work, by design. Or NO_INSTALL, which does rather more
    than just not installing ...

    I'm investigating source_mage, and ought to investigate dracut.

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Neil Bothwick on Sat Jan 1 21:10:01 2022
    Neil Bothwick wrote:
    On Sat, 1 Jan 2022 15:44:51 +0000, Wols Lists wrote:

    Compiling the kernel and modules? Replace 1 with

    make all modules_install install

    There's also the matter of the initramfs, one of the main reasons
    people use genkernel, although I prefer dracut for this.


    until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT,
    which doesn't work, by design. Or NO_INSTALL, which does rather more
    than just not installing ...

    I'm investigating source_mage, and ought to investigate dracut.
    Once you have a working kernel, there's very little to do on updates. A script that runs

    cd /usr/src/linux
    zcate /proc/config.gz >.config
    make oldconfig
    make all modules_install install
    dracut --kver=$(cat include/config/kernel.release) --xz
    update the bootloader

    mostly does it all, with a few frills thrown in to cover things like rebuilding modules.




    Can you explain this part a bit? How it knows what version for example
    to build against? Does it follow the link in /usr/src/linux, eselect
    info or something else?


    dracut --kver=$(cat include/config/kernel.release) --xz


    The one thing that stumps me is figuring out how to tell dracut what
    version I want built. I keep 2, 3 and sometimes 4 kernels of different versions lurking about in /boot.

    Thanks.

    Dale

    :-) :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Wols Lists on Sat Jan 1 20:30:01 2022
    On Sat, 1 Jan 2022 15:44:51 +0000, Wols Lists wrote:

    Compiling the kernel and modules? Replace 1 with

    make all modules_install install

    There's also the matter of the initramfs, one of the main reasons
    people use genkernel, although I prefer dracut for this.


    until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT,
    which doesn't work, by design. Or NO_INSTALL, which does rather more
    than just not installing ...

    I'm investigating source_mage, and ought to investigate dracut.

    Once you have a working kernel, there's very little to do on updates. A
    script that runs

    cd /usr/src/linux
    zcate /proc/config.gz >.config
    make oldconfig
    make all modules_install install
    dracut --kver=$(cat include/config/kernel.release) --xz
    update the bootloader

    mostly does it all, with a few frills thrown in to cover things like rebuilding modules.


    --
    Neil Bothwick

    Windoze95 Quote: Why is the Pentium 166 so fast? - Its for booting
    faster, if Windows crashed again.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmHQqisACgkQ92eFu0QS MJgvXQ//YKipISD+x94dYeVlbSd262TYlOAgKT3T6XA4bftNOjqDPyDK+Q9hM+Vq ThvM+tGyCmNRHiVFlx2JB5iJYsxz+D3B3nX97rufxx8QtFgOMSSVpAGamL8Mdu/O ItU2sdnF0CTw7rYkazuQ1t2ds6e3XwCzioodEYutaNzeT+5bTRJHJek7lJ4svV9V Ih3fkNTlJvIl1BU9Kp6DeFlYRUQLpsOjVGOtxJBrCcAru/IwDy6GG0v3hbwzVRP/ p34Xp+n3nmX0TLEkQ/ZqoUxarW/PIdYmL5TGZVSI6B9nv1tthTbU3F13p4B3o1DW k1oTYvnEq1gA/XUBK7Kme/HdrOly04yCXi4BP/p0XxmmBp3E+X3UVlZf/w8n6ybf Aif59gGZcnnfqkVpCdM8QazjLFjK/Ui+p1unu1NHkDKqfTi8Ew2U2UoP41sA1peI 6cD63xvudWPYONZLEZ4lVvHqsgaHs2ns0MvWpLGR28lRRYSZAU6kcxr0y05YCFC6 8lNqF2sblYYWuEjPH2bR1Xcn8x5kacb/D9i59YVkSma/0wQPib6tYvqN0jMIj7nh rTIiUWA/doAZCn2ONhG4krEE1lmAs1svnvb0lSmdzWMnuq0jEgtcr8v+2Qf0A5NM a+RxohOBAJ0D4Bj7kwuhkdEGtgfy6noULbFG22TqsP5WG7Tqaoo=
    =+i8/
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From William Kenworthy@21:1/5 to Dale on Sun Jan 2 07:10:01 2022
    On 2/1/22 13:44, Dale wrote:
    Dale wrote:
    Neil Bothwick wrote:
    On Sat, 1 Jan 2022 15:44:51 +0000, Wols Lists wrote:

    Compiling the kernel and modules? Replace 1 with

    make all modules_install install

    There's also the matter of the initramfs, one of the main reasons
    people use genkernel, although I prefer dracut for this.


    until you trip over genkernel's "features" ... like AUTOMOUNT_BOOT,
    which doesn't work, by design. Or NO_INSTALL, which does rather more
    than just not installing ...

    I'm investigating source_mage, and ought to investigate dracut.
    Once you have a working kernel, there's very little to do on updates. A
    script that runs

    cd /usr/src/linux
    zcate /proc/config.gz >.config
    make oldconfig
    make all modules_install install
    dracut --kver=$(cat include/config/kernel.release) --xz
    update the bootloader

    mostly does it all, with a few frills thrown in to cover things like
    rebuilding modules.


    Can you explain this part a bit?  How it knows what version for example
    to build against?  Does it follow the link in /usr/src/linux, eselect
    info or something else?


    dracut --kver=$(cat include/config/kernel.release) --xz
    The one thing that stumps me is figuring out how to tell dracut what
    version I want built.  I keep 2, 3 and sometimes 4 kernels of different
    versions lurking about in /boot.

    Thanks.

    Dale

    :-)  :-)

    I got it figured out.  That's a little like cheating.  LOL

    Dale

    :-)  :-)
    rattus ~ # (cd /usr/src/linux && make kernelversion)
    5.10.76-gentoo-r1
    rattus ~ #

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Dale on Sun Jan 2 10:30:02 2022
    On Sat, 1 Jan 2022 23:44:55 -0600, Dale wrote:

    Can you explain this part a bit?  How it knows what version for
    example to build against?  Does it follow the link in /usr/src/linux, eselect info or something else?


    dracut --kver=$(cat include/config/kernel.release) --xz

    I got it figured out.  That's a little like cheating.  LOL 

    One man's cheating is another man's optimisation ;-)


    --
    Neil Bothwick

    There are only two hard problems in distributed systems:
    2. Exactly-once delivery
    1. Guaranteed order of messages
    2. Exactly-once delivery

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmHRboYACgkQ92eFu0QS MJg0ug/+KVIkCrf24grccLyGS1i6JP+wYFvF1zBr7+xgBlzZ5rcl2TCpJ49hFWXc cdgBe6WeZq2c8P5Nf15af+XX+btSuIHCL9151u7EpmXWsAbpwZqIgYpaPDzZUHRf A2IlJ0HHz0oNauZKA9mT9Ab/PavUVpsp+VIuu0on1K6gVSp+eEUEUw+ILdab1+1X +QpbCC1Ttlx1oHFLoiXelHEunFafRaC0IpDeO0muBuDZRNaqTPwjdPfGZej996xR VFWnG+chh/Am2AJf8KzGSspLYToMkZwSqlpY28vUr1c9wtINAAZwcbXY0DCiCUTP 4MNo+sORShfLhQMZd+cYebafH5XeJFc935mYFIvN+fS46cd0lPFbEnY8MW87LN60 1yutxGzVCmeZRmdgAqZqIhxXwsCXf+VzkcVUI+3EUG9cMZTpNgz7ojxSa2ny0QYR 7ZALQGMSrlbKcqKdJSJvB2yIgQHTMRmPfWlg78udq0Qzk/7Bn5NWNpohA90humBy AQaGkubwM8TUZZ3H/57ZGbzCaL+jrd8fAE2G0JhbrubnaPrwhDhC3fWK12vJUPq9 YkPYDILA3Ew05XapTF1aL66YMfna3U8h1E9oOoDr4Iv2rIf5QidiImjeCJDYc8HO JpLTYR3T8u3uHNJhty5F5tO0YrQzMBZA/1xdDtnvZhJl35mIb6o=
    =7kNY
    -----END PGP SIGNATURE-----

    ---
  • From =?utf-8?B?Y2F2ZW1hbiDYsdmO2KzZj9mE2@21:1/5 to Matthew Smith on Mon Jan 3 09:40:01 2022
    On Saturday, January 1st, 2022 at 9:57 AM, Matthew Smith <matt@offtopica.uk> wrote:

    You can tell genkernel to run `make oldconfig` (see

    `/etc/genkernel.conf`), but I think if you only have a few config

    tweaks the best solution is to migrate to a distribution kernel.

    For example, you could create /etc/kernel/config.d/nogpu.config with

    the contents

    CONFIG_DRM_AMDGPU=n

    CONFIG_DRM_I915=n

    CONFIG_DRM_NOUVEAU=n

    CONFIG_DRM_RADEON=n

    And every time you build a dist kernel like sys-kernel/gentoo-kernel

    or sys-kernel/vanilla-kernel these options will be applied.


    thanks! config.d option fits me perfectly.

    i didn't know of this feature of distribution
    kernels, even though i'm using gentoo-sources
    for years. me even dumber than i thought.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)