Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Rinominazione del kernel con genkernel
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
ænigma
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2019
Posts: 123
Location: Italy

PostPosted: Wed Jan 22, 2020 10:06 am    Post subject: [Risolto] Rinominazione del kernel con genkernel Reply with quote

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


Joined: 08 Mar 2003
Posts: 31682
Location: here

PostPosted: Wed Jan 22, 2020 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
ænigma
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2019
Posts: 123
Location: Italy

PostPosted: Wed Jan 22, 2020 10:28 am    Post subject: Reply with quote

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


Joined: 08 Mar 2003
Posts: 31682
Location: here

PostPosted: Wed Jan 22, 2020 10:55 am    Post subject: Reply with quote

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
View user's profile Send private message
ænigma
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2019
Posts: 123
Location: Italy

PostPosted: Wed Jan 22, 2020 11:11 am    Post subject: Reply with quote

Grazie mille!
_________________
Davide


Descriverei Gentoo con una sola parola: GENIALE!
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1057

PostPosted: Wed Jan 22, 2020 11:58 am    Post subject: Reply with quote

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


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Sat Jan 25, 2020 5:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
ænigma
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2019
Posts: 123
Location: Italy

PostPosted: Sat Jan 25, 2020 6:30 pm    Post subject: Reply with quote

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


Joined: 03 Jan 2012
Posts: 1057

PostPosted: Sat Jan 25, 2020 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
ænigma
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2019
Posts: 123
Location: Italy

PostPosted: Sat Jan 25, 2020 8:03 pm    Post subject: Reply with quote

Grazie sabayonino.
_________________
Davide


Descriverei Gentoo con una sola parola: GENIALE!
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 595
Location: Italia

PostPosted: Sat Jan 25, 2020 10:03 pm    Post subject: Reply with quote

Ho fatto come avete detto voi ed ora è tutto ok.
Grazie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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