Menu

Placing scripts in $OCS_PRERUN_DIR

Help
tomchilton
2008-03-12
2013-04-05
  • tomchilton

    tomchilton - 2008-03-12

    Hi,

    Please excuse my ignorance here. I see from a previous thread that the prerun directory lies at /opt/drbl/share/ocs/prerun/ but how to I get a script to persist there when using a liveUSB version of clonezilla? If a copy a script there then obviously it has disappeared when I next boot from the USB stick. If I create the directory structure on the USB stick then it on appears in /live_media and not in the root file structure.
    I'm sure this is really simple but I dont seem to be able to find the answer in the FAQ.

    Sorry if I've missed something obvious and thanks in advance.

    Tom

     
    • Steven Shiau

      Steven Shiau - 2008-03-13

      Actually the clonezilla related files are in /pkg/opt_drbl.tgz in the live CD os zip file. You can untar that, put your own script into that directory.
      Another approach is to use this advanced mode:
      http://clonezilla.sourceforge.net/clonezilla-live/#Advanced_mode
      to create your own zip file. You can make it by:
      1. Put your script in /opt/drbl/share/ocs/prerun/
      2. Run:
         /opt/drbl/sbin/ocs-live-dev -c -s
         to create such a zip file. For more info, please run "/opt/drbl/sbin/ocs-live-dev --help".

       
    • tomchilton

      tomchilton - 2008-03-13

      Perfect thanks!

      Tom

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.