Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dpdt1Offline
Post subject: grub2-fll-fromiso problem  PostPosted: 15.08.2011, 10:21



Joined: 2010-09-27
Posts: 48

Status: Offline
i'd like to try grub2-fll-fromiso but i have trouble making it work. followed instructions from http://manual.aptosid.com/en/hd-install ... b2-fromiso , but used it with other isos (non aptosid) i'd like to boot. (does this work with only fll isos? )
after choosing one of them from grub menu, i get file not found messages from grub and get stuck there.
only option then, is to boot normally to installed system.

/etc/default/grub2-fll-fromiso :

      Code:
# specify where to look for the ISO
# default: /srv/ISO
FLL_GRUB2_ISO_LOCATION="/backup/isos"

# array for defining ISO prefices --> aptosid-*.iso, non-recursive
# default: "aptosid- fullstory-"
FLL_GRUB2_ISO_PREFIX="tails- systemrescuecd-"

# set default language
# default: en_US
FLL_GRUB2_LANG="en_US"

# override the default timezone.
# default: UTC
FLL_GRUB2_TZ="Europe/Athens"

# additional cheatcodes
# default: quiet noeject
FLL_GRUB2_CHEATCODE="quiet noeject"


# update-grub output :
      Quote:
Found fromiso: tails-i386-0.7.2.iso on /dev/sda2
Found fromiso: systemrescuecd-x86-2.3.0.iso on /dev/sda2


grub.cfg :
      Code:
### BEGIN /etc/grub.d/60_fll-fromiso ###
menuentry "tails-i386-0.7.2 (vmlinuz)" {
   insmod iso9660
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set=root 8ec68a53-a1b7-4f95-b08e-d4960583d29e
   loopback loop /isos/tails-i386-0.7.2.iso
   linux (loop)/boot/vmlinuz fromhd=UUID=8ec68a53-a1b7-4f95-b08e-d4960583d29e fromiso=/isos/tails-i386-0.7.2.iso boot=fll lang=en_US tz=Europe/Athens quiet noeject
   initrd (loop)/boot/initrd.img
}
menuentry "systemrescuecd-x86-2.3.0 (vmlinuz)" {
   insmod iso9660
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set=root 8ec68a53-a1b7-4f95-b08e-d4960583d29e
   loopback loop /isos/systemrescuecd-x86-2.3.0.iso
   linux (loop)/boot/vmlinuz fromhd=UUID=8ec68a53-a1b7-4f95-b08e-d4960583d29e fromiso=/isos/systemrescuecd-x86-2.3.0.iso boot=fll lang=en_US tz=Europe/Athens quiet noeject
   initrd (loop)/boot/initrd.img
}
### END /etc/grub.d/60_fll-fromiso ###


any ideas?

thanks.

_________________
# apt-get remove frontiers
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: grub2-fll-fromiso problem  PostPosted: 15.08.2011, 11:58



Joined: 2010-08-25
Posts: 760

Status: Offline
grub2 cannot boot the ElTorito bootsector of the involved ISO files, but starts kernel && initrd inside the loop mounted ISO on its own. In order to do so, the generated grub.cfg snippet needs intimate knowledge about how the ISO needs to be set up in order to boot (like kernel parameters and 'cheatcodes', where root is supposed to be, etc. pp.). grub2-fll-fromiso knows how to accomplish this for aptosid ISOs, but has no knowledge about other distributions. Therefore it's very unlikely that other ISOs will cope with the generated grub.cfg snippets without larger changes (detection methods, custom kernel parameter handling and more).

There are more generic ways to employ a syslinux payload from within grub2 in order to actually chainload the ElTorito bootsectors of ISOs, something grub2 can't do on its own (yet?), but this is rather fragile and I've seen it failing quite often so far. Another drawback of this approach would be that it wouldn't allow any method to automatically inject cheatcodes (most importantly language/ timezone preconfiguration).

This is no bug, but a direct result of grub2's current design limitations and therefore to be expected.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio