Menu

Script location not valid

Help
Dave
2012-11-06
2013-04-05
  • Dave

    Dave - 2012-11-06

    Hi,
    I have an automated setup of Clonezilla, and it's worked really well for me. But now, in the testing version, it complains about /sbin/drbl-functions is not found. drbl-functions is located in /usr/share/drbl/sbin. None of my scripts call this, so I'm assuming it's part of Clonezilla. If I'm using an outdated script, please tell me how I should adjust it. If not, could one of the developers kindly make a symbolic link in /sbin to fix the automation? I can do it manually and it will run, but it's a hassle to do it every time I run it. Thanks.

     
  • Steven Shiau

    Steven Shiau - 2012-11-06

    In Clonezilla v2, we have moved executable files to /usr/sbin, /usr/bin, /usr/share/drbl/sbin, and /usr/share/drbl/bin/. The files in /usr/share/drbl/sbin and /usr/share/drbl/bin are not to be run directly from command line by user. Normally they are called by another program.
    Therefore if you want to use the Clonezilla live 2.x, please update your script.

    Steven.

     
  • Dave

    Dave - 2012-11-06

    This file is called by one of the Clonezilla scripts. I have updated all of the locations called by my scripts.

     
  • Dave

    Dave - 2012-11-06

    I've looked through everything my script calls, and perhaps it is called by drbl-conf-functions in /usr/share/drbl/sbin?

    I think $DRBL_SCRIPT_PATH isn't set. Is that something that should be set manually?

     
  • Steven Shiau

    Steven Shiau - 2012-11-06

    Which version of Clonezilla live did you use?
    Please show me the error messages so it's easier for us to fix that.
    Thanks.

    Steven.

     
  • Steven Shiau

    Steven Shiau - 2012-11-06

    I believe it's a bug.
    Did you see which program calls drbl-conf-functions?
    Could you take a photo about the screen then post it?

    Steven.

     
  • Dave

    Dave - 2012-11-06

    I'm using Clonezilla 2.0.0-34

    My script calls drbl-conf-functions, which then tries to find drbl-functions.

    "File /sbin/drbl-functions not found! Program terminated!" is the exact error it gives.

     
  • Steven Shiau

    Steven Shiau - 2012-11-06

    How about showing me your script?

    Steven.

     
  • Dave

    Dave - 2012-11-06

    #!/bin/bash
    . /usr/share/drbl/sbin/drbl-conf-functions
    . /usr/share/drbl/sbin/ocs-functions
    . /etc/ocs/ocs-live.conf

    /usr/sbin/ocs-sr -g auto -e1 auto

    This is the entirety of the script I use, minus a few arguments on the last line.

     
  • Steven Shiau

    Steven Shiau - 2012-11-06

    Actually why not just run
    /usr/sbin/ocs-sr -g auto -e1 auto…
    ?
    There is no need to run those 3 lines.
    Or you can add one line in your script's beginning:
    export DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"

    Anyway, I will add the seting in drbl-conf-functions, too.
    Thanks.

    Steven.

     
  • Dave

    Dave - 2012-11-06

    It was something I copied and pasted from the documentation quite a while ago. It's worked well, and this has been my only complaint.

    Thanks for adding it in.

     

Log in to post a comment.