View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1697
|
Posted: Sun Oct 20, 2024 8:22 pm Post subject: booting minimal gentoo iso from ssd |
|
|
Greetings Gentooers
I'd like to keep the minimal Gentoo iso on a partition (ext4) /dev/sda3
I have grub installed on /dev/sda & /dev/sda1 and I'd like to add a menuentry able to boot the iso.
I mounted a copy of the iso to look around
Code: | mount -o loop /tmp/gentooiso/install-amd64-minimal-20241006T144834Z.iso /mnt/iso |
and came up with this
Code: |
menuentry "Gentoo ISO" {
set isofile="/install-amd64-minimal-20241006T144834Z.iso"
rmmod tpm
# iso is on /dev/sda3
loopback loop (hd0,gpt3)$isofile
linux (loop)/boot/gentoo
path=image.squashfs iso-scan/filename=$isofile
initrd (loop)/boot/gentoo.igz
}
|
Any comments or suggestions on the best way to do this ?
(It boots up to the intiramfs but never finishes booting.) _________________ Donate to Gentoo |
|
Back to top |
|
|
JimRockford74 n00b
Joined: 26 Nov 2024 Posts: 6
|
Posted: Tue Nov 26, 2024 9:08 pm Post subject: |
|
|
Here's a modified GRUB menuentry that should work better:
grub.cfg
Code: | menuentry "Gentoo ISO" {
set isofile="/install-amd64-minimal-20241006T144834Z.iso"
search --set=root --file $isofile
loopback loop $isofile
linux (loop)/boot/gentoo root=/dev/ram0 isoboot=$isofile
initrd (loop)/boot/gentoo.igz
} |
Try this simplified GRUB entry - it adds the necessary root=/dev/ram0 and isoboot=$isofile parameters that the initramfs needs to properly boot the ISO.
Run grub-mkconfig -o /boot/grub/grub.cfg after making changes _________________ This is Jim Rockford. I'm either working a case or waiting for something to finish. If you're selling patience, I'm interested. $200 a day plus expenses. Leave your message at the tone. *beep* |
|
Back to top |
|
|
|