Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot di una iso di gentoo con grub2 da un'altra distro
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
Nuklear
n00b
n00b


Joined: 03 Nov 2014
Posts: 5

PostPosted: Sun Dec 11, 2016 7:10 pm    Post subject: Boot di una iso di gentoo con grub2 da un'altra distro Reply with quote

Per quanto in oggetto (usando nel mio caso Ubuntu):
Code:
 sudo  /etc/grub.d/40_custom

ed aggiungere le seguenti righe:
Code:

menuentry 'Gentoo Live DVD ISO' --class os --class gnu-linux --class gnu --class os --group group_main {
set isofile="/gentoo-livedvd.iso"
loopback loop (hd0,3)$isofile   
linux (loop)/boot/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=/boot/gentoo.igz isoboot=$isofile
initrd (loop)/boot/gentoo.igz
}

sostituendo a gentoo-livedvd.iso ed (hd0,3) il nome della propria iso e partizione.
Poi
Code:
 update-grub
oppure
Code:
grub2-mkconfig

Spero di essere stato utile. :lol:

FONTE: dalla rete.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sun Dec 11, 2016 7:46 pm    Post subject: Reply with quote

evitando di indicare il partizionamento hd(x,y)

è possibile settare l'UUID o LABLE (se presente) del disco contenente l'immagine


UUID=594e4219-70e5-4711-91e6-b38f9566938d

Code:
search --no-floppy --fs-uuid --set=root 594e4219-70e5-4711-91e6-b38f9566938d
set isofile=/path/immagie/iso/relativo/uuid
loopback loop $isofile
linux ....



label = gentoo
Code:
 search --no-floppy --label gentoo --set
set isofile=/path/immagie/iso/relativo/uuid
loopback loop $isofile
linux ....

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Nuklear
n00b
n00b


Joined: 03 Nov 2014
Posts: 5

PostPosted: Mon Dec 12, 2016 7:18 am    Post subject: Reply with quote

Funziona molto meglio con la label...
Quindi diventa:
Code:

menuentry 'Gentoo Live DVD ISO' --class os --class gnu-linux --class gnu --class os --group group_main {
 search --no-floppy --label gentoo-image --set
set isofile="/gentoo-livedvd.iso"
loopback loop $isofile   
linux (loop)/boot/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=/boot/gentoo.igz isoboot=$isofile
initrd (loop)/boot/gentoo.igz
}

Perfetto. Grazie. :wink:
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Mon Dec 12, 2016 8:38 pm    Post subject: Reply with quote

ovviamente l'UUID deve corrispondere alla partizione dedicata alla ISO , non a quella che ho indicato io per scopo puramente esemplificativo

Code:
# blkid


o

Code:
# ls -lh /dev/disk/by-uuid

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Nuklear
n00b
n00b


Joined: 03 Nov 2014
Posts: 5

PostPosted: Tue Dec 13, 2016 10:11 pm    Post subject: Reply with quote

L'opzione search funziona solo con la iso di gentoo o anche con qualsiasi altra iso di qualsiasi altra distro?
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