View previous topic :: View next topic |
Author |
Message |
ænigma Tux's lil' helper


Joined: 02 Mar 2019 Posts: 123 Location: Italy
|
Posted: Wed Jan 22, 2020 10:06 am Post subject: [Risolto] Rinominazione del kernel con genkernel |
|
|
Ciao a tutti,
dopo l'aggiornamento a genkernel, portage diceva che, molto probabilmente, facendo puntare al nuovo kernel, questo non sarebbe stato riconosciuto e il boot sarebbe avvenuto ancora con il vecchio kernel, installato con genkernel prima dell'aggiornamento. Come devo fare per farmi riconoscere il nuovo kernel installato con la nuova rinominazione, visto che mi fa il boot ancora col vecchio kernel?
Grazie. _________________ Davide
Descriverei Gentoo con una sola parola: GENIALE!
Last edited by ænigma on Wed Jan 22, 2020 4:57 pm; edited 1 time in total |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31682 Location: here
|
Posted: Wed Jan 22, 2020 10:16 am Post subject: |
|
|
Non e' che non lo riconosce ma hanno cambiato la rinominazione da kernel-genkernel-x86_64-4.19.86-gentoo a vmlinuz-4.19.86-gentoo-x86_64 e questo fa in modo che il nuovo nome non sia il primo della lista in grub.
Io ho semplicemente compilato il kernel con il nuovo genkernel, fatto il reboot ho scelto dal menu grub il kernel nuovo e una volta verificato che tutto funzionasse ho rimosso i vecchi. _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
ænigma Tux's lil' helper


Joined: 02 Mar 2019 Posts: 123 Location: Italy
|
Posted: Wed Jan 22, 2020 10:28 am Post subject: |
|
|
Quindi potrei semplicemente cancellare le voci del vecchio kernel per fare in modo da lasciare solo quelle del nuovo kernel. _________________ Davide
Descriverei Gentoo con una sola parola: GENIALE! |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31682 Location: here
|
Posted: Wed Jan 22, 2020 10:55 am Post subject: |
|
|
aenigma wrote: | Quindi potrei semplicemente cancellare le voci del vecchio kernel per fare in modo da lasciare solo quelle del nuovo kernel. |
Esatto ma prima testa che il nuovo funzioni  _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
ænigma Tux's lil' helper


Joined: 02 Mar 2019 Posts: 123 Location: Italy
|
Posted: Wed Jan 22, 2020 11:11 am Post subject: |
|
|
Grazie mille! _________________ Davide
Descriverei Gentoo con una sola parola: GENIALE! |
|
Back to top |
|
 |
sabayonino Veteran


Joined: 03 Jan 2012 Posts: 1057
|
Posted: Wed Jan 22, 2020 11:58 am Post subject: |
|
|
Come news : https://www.gentoo.org/support/news-items/2019-12-30-genkernel-4-default-filenames.html
Quote: | Title: Genkernel 4 changed default filenames
Author: Thomas Deutschmann <whissi@gentoo.org>
Posted: 2019-12-30
Revision: 1
News-Item-Format: 2.0
Display-If-Installed: >=sys-kernel/genkernel-4
To be consistent with kernel's own naming which allows for easier
matching of kernel/initramfs with kernel files (/lib/modules),
genkernel 4 changed default kernel and initramfs filename:
kernel-genkernel-%%ARCH%%-%%KV%% -> vmlinuz-%%KV%%
System.map-genkernel-%%ARCH%%-%%KV%% -> System.map-%%KV%%
initramfs-genkernel-%%ARCH%%-%%KV%% -> initramfs-%%KV%%.img
Note that in genkernel 4, filenames are fully customizable and that
$ARCH value is now part of $KV value by default.
All bootloaders and utilities like sys-apps/kexec-tools available in
Gentoo repository support the new naming schema.
However, due to lexical ordering, the default boot entry in your boot
manager could still point to last kernel built with genkernel before
that name change, resulting in booting old kernel when not paying
attention on boot.
|
_________________ LRS 64/32 |
|
Back to top |
|
 |
Maxxx Guru


Joined: 12 Jan 2016 Posts: 595 Location: Italia
|
Posted: Sat Jan 25, 2020 5:35 pm Post subject: |
|
|
Stesso problema passando da 4.19.86 a 4.19.97... pensavo, e se cambiassi il nome da vmlinuz a kernel-genkernel (per dargli il nome che avrebbe avuto prima)? |
|
Back to top |
|
 |
ænigma Tux's lil' helper


Joined: 02 Mar 2019 Posts: 123 Location: Italy
|
Posted: Sat Jan 25, 2020 6:30 pm Post subject: |
|
|
Penso che, facendo così, ogni volta che uscirà un nuovo kernel, dovrai rinominare la voce del kernel in questione. Io ho risolto andando su “Advanced options” in grub, ho selezionato il nuovo kernel e una volta provato, per vedere se tutto funzionava, ho cancellato tutto ciò che riguardava il vecchio kernel. Adesso la grub mi fa partire, in automatico, il nuovo kernel con la nuova rinominazione. _________________ Davide
Descriverei Gentoo con una sola parola: GENIALE!
Last edited by ænigma on Sun Jan 26, 2020 7:37 am; edited 3 times in total |
|
Back to top |
|
 |
sabayonino Veteran


Joined: 03 Jan 2012 Posts: 1057
|
Posted: Sat Jan 25, 2020 6:41 pm Post subject: |
|
|
file:///etc/default/grub wrote: |
GRUB_DEFAULT=saved
|
Code: | # grub-mkconfig -o /boot/grub/grub.cfg |
Per ripartire con l'ultimo kernel eseguito in precedenza. _________________ LRS 64/32 |
|
Back to top |
|
 |
ænigma Tux's lil' helper


Joined: 02 Mar 2019 Posts: 123 Location: Italy
|
Posted: Sat Jan 25, 2020 8:03 pm Post subject: |
|
|
Grazie sabayonino. _________________ Davide
Descriverei Gentoo con una sola parola: GENIALE! |
|
Back to top |
|
 |
Maxxx Guru


Joined: 12 Jan 2016 Posts: 595 Location: Italia
|
Posted: Sat Jan 25, 2020 10:03 pm Post subject: |
|
|
Ho fatto come avete detto voi ed ora è tutto ok.
Grazie |
|
Back to top |
|
 |
|