View previous topic :: View next topic |
Author |
Message |
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Sat Jan 08, 2022 3:53 pm Post subject: genkernel and trouble with KERNAL_LOCALVERSION - [SOLVED] |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3948
|
Posted: Sat Jan 08, 2022 5:10 pm Post subject: |
|
|
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 |
|
|
russellD n00b
Joined: 07 Oct 2014 Posts: 63 Location: 28.5797S,153.338 E
|
Posted: Sun Jan 09, 2022 12:31 am Post subject: |
|
|
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! |
|
Back to top |
|
|
|