Re: [gentoo-user] Multiboot USB - GRUB2 loop device

2018-07-14 Thread Francesco Turco
On Saturday, 14 July 2018 04.14.07 CEST Alex Luehm wrote:
> I've recently taken it upon myself to create a multiboot USB with isos
> that I tend to frequently use. So far I've been successful in adding
> Clonezilla and the Archlinux live ISOs. I've attempted to add the Gentoo
> install ISO in a similar manner (helped with the grub config within the
> iso itself but can't seem to get GRUB to recogonize the image. My
> DuckDuckGo-foo has returned useless results (a near hit, yet useless
> inquiry being found here:
> https://forums.gentoo.org/viewtopic-p-6527390.html).

You may find the following projects interesting:
- https://github.com/aguslr/multibootusb
- https://github.com/thias/glim

The first project contains GRUB configurations for both Gentoo and System 
Rescue CD while the second one only contains GRUB configurations for System 
Rescue CD.

Please note I haven't tried anything yet. It's just on my (long) todo list.

-- 
https://fturco.gitlab.com/

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Multiboot USB - GRUB2 loop device

2018-07-14 Thread Andreas Fink
On Fri, 13 Jul 2018 21:14:07 -0500
Alex Luehm  wrote:

> Hello all
> 
> I've recently taken it upon myself to create a multiboot USB with isos
> that I tend to frequently use. So far I've been successful in adding
> Clonezilla and the Archlinux live ISOs. I've attempted to add the Gentoo
> install ISO in a similar manner (helped with the grub config within the
> iso itself but can't seem to get GRUB to recogonize the image. My
> DuckDuckGo-foo has returned useless results (a near hit, yet useless 
> inquiry being found here:
> https://forums.gentoo.org/viewtopic-p-6527390.html).
> 
> My current GRUB menu entry is as follows:
> 
> menuentry '[loopback]gentoo amd64' {
>   set isofile='/isos/gentoo.iso'
>   echo "isofile set"
>   loopback loop $isofile
>   echo "loopback set"
>   linux (loop)/isolinux/gentoo64 root=/dev/ram0 init=/linuxrc
>   dokeymap looptype=squashfs loop=/image.squashfs cdroot cdboot
>   initrd=gentoo64.xz
>   initrd (loop)/isolinux/gentoo64.xz
> }
> 
> When booting, I receive the following message:
> 
> isofile set
> loopback set
> error: attempt to read or write outside of disk 'loop'
> error: you need to load the kernel first
> 
> Thanks in advance!
> 

Hello,
I have the following entry to load gentoo from a multiboot USB stick:
menuentry 'gentoo livecd' --id 'gentoolive' {
 if test x$grub_platform = xpc; then linux_suffix=16; else linux_suffix= ; 
fi
 set root='hd1,gpt3'
 search --no-floppy --fs-uuid --set=root 6720-75AD
 linux$linux_suffix /gentoo/isolinux/gentoo root=/dev/ram0 init=/linuxrc  
dokeymap looptype=squashfs subdir=gentoo loop=/gentoo/image.squashfs  cdroot 
initrd=gentoo.igz vga=791 passwd=myCoolSshPassword dosshd
 initrd$linux_suffix /gentoo/isolinux/gentoo.igz
}

I think you need the `subdir` magic here. It's not the same setup as you have. 
I just
unpacked each iso into a subdirectory (and as you can guess, gentoo is unpacked 
in the
gentoo subdirectory). I do not know, but maybe you can give it a shot with
`subdir=(loop)`. Also the files are called on my bootstick gentoo and not 
gentoo64, but
my version is also already 1 year old ;)

Cheers
Andreas



[gentoo-user] Multiboot USB - GRUB2 loop device

2018-07-13 Thread Alex Luehm
Hello all

I've recently taken it upon myself to create a multiboot USB with isos
that I tend to frequently use. So far I've been successful in adding
Clonezilla and the Archlinux live ISOs. I've attempted to add the Gentoo
install ISO in a similar manner (helped with the grub config within the
iso itself but can't seem to get GRUB to recogonize the image. My
DuckDuckGo-foo has returned useless results (a near hit, yet useless 
inquiry being found here:
https://forums.gentoo.org/viewtopic-p-6527390.html).

My current GRUB menu entry is as follows:

menuentry '[loopback]gentoo amd64' {
set isofile='/isos/gentoo.iso'
echo "isofile set"
loopback loop $isofile
echo "loopback set"
linux (loop)/isolinux/gentoo64 root=/dev/ram0 init=/linuxrc
dokeymap looptype=squashfs loop=/image.squashfs cdroot cdboot
initrd=gentoo64.xz
initrd (loop)/isolinux/gentoo64.xz
}

When booting, I receive the following message:

isofile set
loopback set
error: attempt to read or write outside of disk 'loop'
error: you need to load the kernel first

Thanks in advance!

-- 
Best,

Alex Luehm


signature.asc
Description: PGP signature