
* Michael Schierl schierlm@gmx.de [20081206 15:41]:
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.
Lovely. Thanks for the patch - works fine, applied and pushed - live-initramfs package was uploaded as well (and daily snapshots will incorporate the feature therefore ;)).
% git url http://git.grml.org/?p=live-initramfs-grml.git;a=commit;h=9204f2b \ Apply patch by Michael Schierl to support bootoption findiso | 2009-01-12 15:45:28 +0100
regards, -mika-