Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chiarimenti su Genkernel/grub
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
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 230

PostPosted: Mon Dec 04, 2017 6:20 pm    Post subject: Chiarimenti su Genkernel/grub Reply with quote

Uso genkernel in questo modo:

Code:
genkernel --kernname=1 --oldconfig --menuconfig --install all


uso kernname per distinguere i vari kernl

mi crea tutto:

Code:
ls -l /boot
totale 95934
drwxr-xr-x 6 root root     1024  4 dic 19.56 grub
-rw-r--r-- 1 root root 22427844  4 dic 19.45 initramfs-1-x86_64-4.11.0-pf4
-rw-r--r-- 1 root root 24092244 14 nov 11.02 initramfs-genkernel-x86_64-4.13.0-pf4
-rw-r--r-- 1 root root 24100032 31 ott 22.27 initramfs-genkernel-x86_64-4.13.7-rt-rt1
-rw-r--r-- 1 root root  5911088  4 dic 19.32 kernel-1-x86_64-4.11.0-pf4
-rw-r--r-- 1 root root  5927472 14 nov 10.51 kernel-genkernel-x86_64-4.13.0-pf4
-rw-r--r-- 1 root root  5980720 31 ott 22.08 kernel-genkernel-x86_64-4.13.7-rt-rt1
drwx------ 2 root root    12288 29 ott 08.28 lost+found
-rw-r--r-- 1 root root  3088561  4 dic 19.32 System.map-1-x86_64-4.11.0-pf4
-rw-r--r-- 1 root root  3138650 14 nov 10.51 System.map-genkernel-x86_64-4.13.0-pf4
-rw-r--r-- 1 root root  3157733 31 ott 22.08 System.map-genkernel-x86_64-4.13.7-rt-rt1


solo che grub-mkconfig -o /boot/grub/grub.cfg non mi rileva initramfs-1-x86_64-4.11.0-pf4

tanto che poi il kernel non parte a meno che non metto a mano in /boot/grub/grub.cfg il corrispondente initramfs

come si puó risolvere? senza editare il file grub.cfg?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Mon Dec 04, 2017 6:46 pm    Post subject: Reply with quote

Un file che crea il grub.cfg e' /etc/grub.d/10_linux e infatti se guardiano cosa fa con initrd
Code:
initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
           "initrd-${version}" "initramfs-${version}.img" \
           "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
           "initrd-${alt_version}" "initramfs-${alt_version}.img" \
           "initramfs-genkernel-${version}" \
           "initramfs-genkernel-${alt_version}" \
           "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
           "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done

si nota che non tiene in cosiderazione quelli creati con kernname.
Ora per risolvere bisognerebbe cambiare questo script in modo che riconosca che si e' usato kernname e lo si aggiunga al for.
Io aprirei un nuovo bug
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 230

PostPosted: Mon Dec 04, 2017 11:27 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Un file che crea il grub.cfg e' /etc/grub.d/10_linux e infatti se guardiano cosa fa con initrd
Code:
initrd=
  for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
           "initrd-${version}" "initramfs-${version}.img" \
           "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
           "initrd-${alt_version}" "initramfs-${alt_version}.img" \
           "initramfs-genkernel-${version}" \
           "initramfs-genkernel-${alt_version}" \
           "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
           "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
    if test -e "${dirname}/${i}" ; then
      initrd="$i"
      break
    fi
  done

si nota che non tiene in cosiderazione quelli creati con kernname.
Ora per risolvere bisognerebbe cambiare questo script in modo che riconosca che si e' usato kernname e lo si aggiunga al for.
Io aprirei un nuovo bug


Non saprei come aprire un bug....

per adesso dovrei aggiungere una riga tipo

Code:
initramfs-genkernel-${KERNNAME}-${GENKERNEL_ARCH}-${version}" \
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21335
Location: here

PostPosted: Tue Dec 05, 2017 6:50 am    Post subject: Reply with quote

antonellocaroli wrote:
Non saprei come aprire un bug....

Piu' tardi lo faccio io

antonellocaroli wrote:
Code:
initramfs-genkernel-${KERNNAME}-${GENKERNEL_ARCH}-${version}" \

Non saprei se KERNNAME e' una variabile settata dallo script quindi probabilmente non funzionera'
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
antonellocaroli
Apprentice
Apprentice


Joined: 11 Aug 2016
Posts: 230

PostPosted: Tue Dec 05, 2017 7:59 am    Post subject: Reply with quote

fedeliallalinea wrote:
antonellocaroli wrote:
Non saprei come aprire un bug....

Piu' tardi lo faccio io


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