OpenWrt Forum Archive

Topic: ImageBuilder shell.sh --no such file or directory

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am trying to use ImageBuilder
when run "make image" , getting "/include/shell.sh no such file or directory" error
my system is:
Linux Optiplex 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux

any suggestion how to fix?

thanks

here is more info about problem, tried to run "make info"

# make info
--: /media/OWRT/include/shell.sh;: No such file or directory
--: /media/OWRT/include/shell.sh;: No such file or directory
--: /media/OWRT/include/shell.sh;: No such file or directory
Makefile:77: recipe for target 'info' failed
make: *** [info] Error 1
--------------------------------------------------------------------------------------------------------------------------------------------
and here is the "shell.sh" opened in a text editor
I have verified that last command "awk" , was installed in my system

getvar() {
    eval "echo \"\${$1}\""
}

var2file() {
    local var
    eval "var=\"\${$1}\""
    if [ -n "$var" ]; then echo "$var" > "$2"; fi
}

isset() {
    local var
    eval "var=\"\${$1}\""
    [ -n "$var" ]
}

trapret() {(
    local retvals="$1"; shift
    local cmd="$1"; shift
    for retval in $(echo $retvals); do
        local trap_$retval=1
    done
    "$cmd" "$@" || {
        local retval="$?"
        eval "trapped=\${trap_$retval}"
        [ -n "$trapped" ] || {
            return $retval
        }
    }
)}

md5s() {
    cat "$@" | (
        md5sum 2>/dev/null ||
        md5
    ) | awk '{print $1}'
}

Could it be that the /media partition file system is incompatible?

My /media is a fat32 , so this maybe an issue.
/home is an ext4 file system
I am going to move downloaded ImageBuilder to extract it there and run again
thanks

same results in /home (ext4 file system)

root@optiplex:/home/OpenWrt-ImageBuilder-ar71xx-for-Linux-i686# make info
--: /home/OpenWrt-ImageBuilder-ar71xx-for-Linux-i686/include/shell.sh;: No such file or directory
--: /home/OpenWrt-ImageBuilder-ar71xx-for-Linux-i686/include/shell.sh;: No such file or directory
--: /home/OpenWrt-ImageBuilder-ar71xx-for-Linux-i686/include/shell.sh;: No such file or directory
Makefile:77: recipe for target 'info' failed
make: *** [info] Error 1

checked files:

root@optiplex:/home/OpenWrt-ImageBuilder-ar71xx-for-Linux-i686# ls -ln
total 168
drwxr-xr-x 3 1001 1001   4096 Apr  3  2010 build_dir
drwxr-xr-x 3 1001 1001   4096 Apr  3  2010 include
-rw-r--r-- 1 1001 1001   3657 Mar  9  2010 Makefile
drwxrwxr-x 2 1001 1001 139264 Apr  2  2010 packages
-rw-r--r-- 1 1001 1001   7878 Apr  1  2010 rules.mk
drwxr-xr-x 4 1001 1001   4096 Apr  3  2010 scripts
drwxr-xr-x 3 1001 1001   4096 Apr  3  2010 staging_dir
drwxr-xr-x 3 1001 1001   4096 Apr  3  2010 target

The discussion might have continued from here.