Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
booting minimal gentoo iso from ssd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1696

PostPosted: Sun Oct 20, 2024 8:22 pm    Post subject: booting minimal gentoo iso from ssd Reply with quote

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


Joined: 26 Nov 2024
Posts: 5

PostPosted: Tue Nov 26, 2024 9:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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