Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel and trouble with KERNAL_LOCALVERSION - [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
russellD
n00b
n00b


Joined: 07 Oct 2014
Posts: 63
Location: 28.5797S,153.338 E

PostPosted: Sat Jan 08, 2022 3:53 pm    Post subject: genkernel and trouble with KERNAL_LOCALVERSION - [SOLVED] Reply with quote

Hi Gentooers,

How can genkernel to change the name of the new kernel to the value CONFIG_LOCALVERSION set in .config?
Genkernel v3 was able to do this simple task, however it seems this is too difficult for v4 without extra help.

I set up kernel .config variable "CONFIG_LOCALVERSION" the name of the host and a version numer as in -<hostname>-<version_number>
eg "-beanz-04"

However when genkernel is run, the kernal name is appended with "-x86_64" instead of -<hostname>-<version_number> which then makes extra work to manually rename the kernel so as to keep the different versions.

I attempted to edit /etc/genkernel.conf and changed "KERNAL_LOCALVERSION"

Code:
KERNAL_LOCALVERSION="$(grep 'LOCALVERSION=' .config | awk -F "\"" '{print $2}')"


However this didn't work and genkernel used -x86_64 instead.

genkernel details below:
Code:

$ eix genkernel
[I] sys-kernel/genkernel
     Available versions:  4.0.10{tbz2} 4.2.5 4.2.6-r2{tbz2} **9999*l {+firmware ibm PYTHON_SINGLE_TARGET="python3_8 python3_9 python3_10"}
     Installed versions:  4.2.6-r2{tbz2}(05:06:57 12/12/21)(firmware -ibm PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10")


thanks in advance for your help!


Last edited by russellD on Sun Jan 09, 2022 2:11 am; edited 2 times in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3948

PostPosted: Sat Jan 08, 2022 5:10 pm    Post subject: Reply with quote

These are the relevant items
Code:

CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y

Maybe set the second to "n" and set the desired version in the first.
At any rate
Code:

KERNA(E)L_LOCALVERSION=

seems wrong grammatically.
_________________
:)
Back to top
View user's profile Send private message
russellD
n00b
n00b


Joined: 07 Oct 2014
Posts: 63
Location: 28.5797S,153.338 E

PostPosted: Sun Jan 09, 2022 12:31 am    Post subject: Reply with quote

Hi alamahant

Well spotted!

Quote:
Code:

KERNA(E)L_LOCALVERSION=

seems wrong grammatically.


This was the error!

After correcting the error, replacing the .config genkernel had rewritten with the original earlier .config, rerunning genkernel with the updated genkernel.config, the KERNEL_LOCALVERSION was added.

Thank you! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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