Summary: | sys-kernel/genkernel-3.4.10.904: a patch to let an iso boot via grub2 | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Andreas Schürch <nativemad> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | sping |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic-t-790015.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch against sys-kernel/genkernel-3.4.10.904 to let it boot as iso via grub2 |
Description
Andreas Schürch
2009-11-23 19:01:11 UTC
Created attachment 211005 [details, diff]
patch against sys-kernel/genkernel-3.4.10.904 to let it boot as iso via grub2
What exactly does this do? I've been able to boot the CD as it is from grub-0.97 without anything extra (or maybe I'm thinking of liveusb...) You need to have grub2 (i've got 1.97beta1) to boot a plain iso-file which is laying somewhere (could be usb or a normal partition). But the problem is, that grub just mounts it to start the kernel and get the initrd, but it is up to the linuxrc-script to actually do the rest. Therefore this patch! Without it, it just tries every block-device and searches for the recognition file (/livecd) on that device... but as an iso isn't really a blockdevice, it will fail to boot with the message "Media not found! Could not find CD to boot, something else needed!" (tested with the 20091103 minimal iso). The patch just mounts the partition with the iso-file on it to /mnt/iso and then loop-mounts the iso to /mnt/cdrom. Without the new bootparameter, it's the old behavior... Have a look at the forums-link... i've also got fooled around at first! ;-) I've applied a modified version of this patch in git. Included in 3.4.10.908, closing. |