Menu

custom-ocs -- paths errors

Help
mtoka
2018-01-22
2018-02-10
  • mtoka

    mtoka - 2018-01-22
    1. I've used clonezilla-live-2.5.-17-amd64.iso and Lili USB creator to create clonezilla USB drive.
    2. Following this: https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs-1 i've tried to create custom file which i ended up looking like that:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    #!/bin/bash
    
    # Begin of the scripts:
    
    # Load DRBL setting and functions
    
    if [ ! -f "/usr/share/drbl/sbin/drbl-conf-functions" ]; then
    
    echo "Unable to find /usr/share/drbl/sbin/drbl-conf-functions! Program terminated!"
    
    exit 1
    
    fi
    # Below 2 replaced as stated in https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs-1 
    #./usr/share/drbl/sbin/drbl-conf-functions
    #./usr/share/drbl/sbin/ocs-functions
    
    DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
    
    **(line 20)**.$DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
    **(line 21)**./etc/drbl/drbl-ocs.conf
    **(line 22)**.$DRBL_SCRIPT_PATH/sbin/ocs-functions
    
    # load the setting for clonezilla live.
    
    **(line 26)**[ -e /etc/ocs/ocs-live.conf ] && ./etc/ocs/ocs-live.conf
    
    # Load language files. For English, use "en". For Chinese, use "tw.UTF-8"
    
    **(line 30)** ask_and_load_lang_set en_US.UTF-8
    export LANG=en_US.UTF-8
    (...)
    **(line 58)** .$DRBL_SCRIPT_PATH/sbin/ocs-sr -g auto -e1 auto -e2 -r -j2 -c -scr -p reboot restoredisk 2017-08-30-13-img_ReadyForFlashingTabletsImage_V3 mmcblk1
    
    1. I've copied my custom_file.sh to /home/partimag
    2. I've executed:
    ocs-live-dev -g en_US.UTF-8 -k NONE -s -c -m ./custom_file.sh
    

    ending with clonezilla-xxx.zip
    5. i've extracted this file to my USB and restarted computer

    unfornunatelly i am ending up with below errors:

    usr/share/drbl/sbin/custom-ocs: line 20: ./usr/share/drbl/sbin/drbl-conf-functions: no such file or directory
    usr/share/drbl/sbin/custom-ocs: line 21: ./etc/drbl/drbl-ocs.conf: no such file or directory
    usr/share/drbl/sbin/custom-ocs: line 22: ./usr/share/drbl/sbin/drbl-functions: no such file or directory
    usr/share/drbl/sbin/custom-ocs: line 26: ./etc/ocs/ocs-live.conf: no such file or directory
    usr/share/drbl/sbin/custom-ocs: line 30: ask_and_load_lang_set: command not found
    usr/share/drbl/sbin/custom-ocs: line 53: ./usr/share/drbl/sbin/ocs-sr: no such file or directory

     
  • Steven Shiau

    Steven Shiau - 2018-02-10

    There are some extra "." in your custom-ocs, i.e.,
    ./usr/share/drbl/sbin/drbl-conf-functions
    should be like:
    /usr/share/drbl/sbin/drbl-conf-functions
    Otherwise of couse it's not found.

    Steven

     

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.