[Grml] [PATCH] bootoption findiso

Michael Schierl schierlm at gmx.de
Sat Dec 6 15:41:21 CET 2008


Hi mika,
Hi all,


I liked it when I read in the announcement that grml-2008.11 supports a
fromiso bootoption. I wanted to use it for my USB thumb drive, so that I
can add the .iso file to it (so that I can burn a CD if I need one) and
as well boot from it (without requiring twice the space). However, it
did not work as I expected:
- it does not search for the ISO, but require the exact device name
- it does not expose the ISO partition to the booted system

So I patched the initramfs so that it supports another bootoption,
"findiso". When booting with findiso=/grml_2008.11.iso, it will look for
that .iso file on all disks where it usually looks for the .squashfs
file. When it is found, the disk containing the iso is read-only mounted
as /live/findiso (and exposed there after boot completed). The squashfs
file is searched inside that ISO file then.

It worked well in my tests, but of course that does not guarantee it is
bug-free. :)

I attached both the patch and a script I used (in a CD-booted GRML) to
apply the patch (and modify menu.lst), if anyone else wants to use it
with the current stable GRML.


regards,

Michael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: findiso.patch
Url: http://lists.mur.at/pipermail/grml/attachments/20081206/43e62cb6/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prepare_usb
Url: http://lists.mur.at/pipermail/grml/attachments/20081206/43e62cb6/attachment-0001.txt 


More information about the Grml mailing list