Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] boot the Gentoo admin cd from the ISO file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Fri Mar 13, 2015 8:36 pm    Post subject: [solved] boot the Gentoo admin cd from the ISO file Reply with quote

I'm curious how I can get the Gentoo admin to be booted in a similar manner as I can boot TAILS ISO DVD directly from the download area :
Code:
t44 ~ # cat /etc/grub.d/40_custom ; grub2-mkconfig -o /boot/grub/grub.cfg
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
set fallback=4

menuentry "TAILS" {
  set root='hd0,gpt3'
  set isofile='/home/tfoerste/Downloads/tails.iso'
  loopback loop $isofile
  linux  (loop)/live/vmlinuz2 boot=live config live-media=removable apparmor=1 security=apparmor nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msec=1000 splash noautologin module=Tails quiet
  initrd (loop)/live/initrd2.img
}

menuentry "admincd" {
  set root='hd0,gpt3'                                                                                   
  set isofile='/home/tfoerste/Downloads/admincd.iso'                                                   
  #linux  (loop)/isolinux/image.squashfs root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs cdroot vga=791                                                                                                 
  #initrd (loop)/isolinux/gentoo.igz                                                                   
  linux  /usr/share/syslinux/memdisk iso                                                               
  initrd /home/tfoerste/Downloads/admincd.iso                                                           
}                                                                                                       
                                                                                                       
menuentry "Ubuntu" {                                                                                   
  set root='hd0,gpt3'                                                                                   
  set isofile='/home/tfoerste/Downloads/ubuntu.iso'                                                     
  loopback loop $isofile                                                                               
  linux  (loop)/casper/vmlinuz.efi  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --         
  initrd (loop)/casper/initrd.lz                                                                       
}   

Currently the admincd initrd is booted, I'm asked for a keyboard, but then the boot stucks in mounting the right device onto /.


Last edited by toralf on Mon Mar 23, 2015 9:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Fri Mar 13, 2015 9:31 pm    Post subject: Reply with quote

I tried this a while back and never got it going. While GRUB works fine with some ISO images, what appears to happen is that the Gentoo CD boots, then takes control of the hardware and sees the USB stick but does not see the files inside the ISO on your USB stick. In other words, once it has started, it needs the files on that ISO image, but cannot read into said image.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Mon Mar 23, 2015 9:33 pm    Post subject: Reply with quote

found the answer here in the forum, this works here now :
Code:
menuentry "Gentoo Live DVD" {
  set isofile='/home/tfoerste/Downloads/livedvd.iso'
  loopback loop $isofile
  set root=(loop)

  linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap aufs looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz isoboot=$isofile
  initrd (loop)/isolinux/gentoo.igz
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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