#8 fromiso patch for linuxrc

closed-accepted
None
5
2005-03-05
2004-11-19
Niall Walsh
No

The attached patch converts linuxrc to use a fromiso
cheatcode. Simply if fromiso is used, then instead of
searching devices for /base it looks for base.iso and
if it finds it it tries to mount that iso as /cdrom.

This assumes:

1. Mount has loop support (is an option for busybox anyway)
2. Kernel has loop support (can include module in minirt)

That's it.

Discussion

  • Niall Walsh
    Niall Walsh
    2004-11-19

    Logged In: YES
    user_id=694100

    Ooops, knew there was something else, if needs the /isosrc
    directory to mount on. I didn't want to trample and any of
    the fromhd and other trickery so thought a clean point would
    be better. It could add a mkdir /isrosrc then fromiso is
    detected.

     
  • Niall Walsh
    Niall Walsh
    2004-11-19

     
    Attachments
  • Niall Walsh
    Niall Walsh
    2004-11-19

    Logged In: YES
    user_id=694100

    Changed the patch to a proper fixed one! Don't think you
    can do a mkdir as I don't think mkdir is available (unless
    you add it to the minirt via busybox). Hope I finally have
    this right! The idea is simple and uninvasive.

     
    • assigned_to: nobody --> alextreme
    • status: open --> closed-accepted
     
  • Logged In: YES
    user_id=97489

    Hi Niall,

    Sorry for not having replied on this before, I don't have
    much of an excuse although if you had mailed me about this
    patch it might have speeded things up a bit :)

    Anyway, I've merged your patch with the one in CVS
    (scripts-base/miniroot/linuxrc-scripts/linuxrc). We did have
    a similar bootoption (fromdirectory) added a few weeks ago,
    but both seem useful enough. The changes should pop up in
    anoncvs within 24 hours, and will be included for the next
    release.

    Thanks,

    Alex