[Grml] [PATCH] bootoption findiso

Michael Prokop mika at grml.org
Mon Jan 12 20:21:05 CET 2009


* Michael Schierl <schierlm at 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-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml @ irc.freenode.org    # meet us on irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml/attachments/20090112/ab171d4d/attachment-0003.pgp>


More information about the Grml mailing list