Image Builder 21.02.1 fails for ubnt_edgerouter-x

Dear all,

I just tried to build a custom ER-X image but it fails. Any ideas? 19.07.8 is building fine.
I'm using ubuntu in WSL2 and installed all packages as documented in https://openwrt.org/docs/guide-user/additional-software/imagebuilder

# make image PROFILE=ubnt_edgerouter-x
Building images for ramips - Ubiquiti EdgeRouter X
Packages: base-files busybox ca-bundle dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-gpio-button-hotplug kmod-ipt-offload kmod-leds-gpio libc libgcc libustream-wolfssl logd mtd netifd odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd uci uclient-fetch urandom-seed urngd

Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../../home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.

Installing packages...
Installing libc (1.1.24-3) to root...
Installing libgcc1 (8.4.0-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/libgcc1_8.4.0-3_mipsel_24kc.ipk
Configuring libgcc1.
Configuring libc.
Installing kernel (5.4.154-1-ecc7515846d9a85938da6124aee98749) to root...
Configuring kernel.
Installing base-files (1434-r16325-88151b8303) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/base-files_1434-r16325-88151b8303_mipsel_24kc.ipk
Installing libubox20210516 (2021-05-16-b14c4688-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libubox20210516_2021-05-16-b14c4688-2_mipsel_24kc.ipk
Installing libuci20130104 (2020-10-06-52bbc99f-5) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libuci20130104_2020-10-06-52bbc99f-5_mipsel_24kc.ipk
Installing libnl-tiny1 (2020-08-05-c291088f-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libnl-tiny1_2020-08-05-c291088f-2_mipsel_24kc.ipk
Installing libubus20210630 (2021-06-30-4fc532c8-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libubus20210630_2021-06-30-4fc532c8-2_mipsel_24kc.ipk
Installing libjson-c5 (0.15-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libjson-c5_0.15-2_mipsel_24kc.ipk
Installing libblobmsg-json20210516 (2021-05-16-b14c4688-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libblobmsg-json20210516_2021-05-16-b14c4688-2_mipsel_24kc.ipk
Installing ubusd (2021-06-30-4fc532c8-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ubusd_2021-06-30-4fc532c8-2_mipsel_24kc.ipk
Installing ubus (2021-06-30-4fc532c8-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ubus_2021-06-30-4fc532c8-2_mipsel_24kc.ipk
Installing jshn (2021-05-16-b14c4688-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/jshn_2021-05-16-b14c4688-2_mipsel_24kc.ipk
Installing netifd (2021-10-30-8f82742c-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/netifd_2021-10-30-8f82742c-1_mipsel_24kc.ipk
Installing jsonfilter (2018-02-04-c7e938d6-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/jsonfilter_2018-02-04-c7e938d6-1_mipsel_24kc.ipk
Installing usign (2020-05-23-f1f65026-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/usign_2020-05-23-f1f65026-1_mipsel_24kc.ipk
Installing openwrt-keyring (2021-02-20-49283916-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/openwrt-keyring_2021-02-20-49283916-2_mipsel_24kc.ipk
Installing ubi-utils (2.1.2-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/ubi-utils_2.1.2-1_mipsel_24kc.ipk
Installing ubox (2020-10-25-9ef88681-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ubox_2020-10-25-9ef88681-2_mipsel_24kc.ipk
Installing fstools (2021-01-04-c53b1882-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/fstools_2021-01-04-c53b1882-1_mipsel_24kc.ipk
Installing fwtool (2019-11-12-8f7fe925-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/fwtool_2019-11-12-8f7fe925-1_mipsel_24kc.ipk
Installing busybox (1.33.2-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/busybox_1.33.2-1_mipsel_24kc.ipk
Installing ca-bundle (20210119-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ca-bundle_20210119-1_all.ipk
Installing dnsmasq (2.85-8) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/dnsmasq_2.85-8_mipsel_24kc.ipk
Installing dropbear (2020.81-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/dropbear_2020.81-2_mipsel_24kc.ipk
Installing firewall (2021-03-23-61db17ed-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/firewall_2021-03-23-61db17ed-1_mipsel_24kc.ipk
Installing libxtables12 (1.8.7-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/libxtables12_1.8.7-1_mipsel_24kc.ipk
Installing libip4tc2 (1.8.7-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/libip4tc2_1.8.7-1_mipsel_24kc.ipk
Installing libip6tc2 (1.8.7-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/libip6tc2_1.8.7-1_mipsel_24kc.ipk
Installing kmod-nf-reject (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-reject_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-ipt (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-ipt_5.4.154-1_mipsel_24kc.ipk
Installing kmod-ipt-core (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ipt-core_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-conntrack (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-conntrack_5.4.154-1_mipsel_24kc.ipk
Installing kmod-ipt-conntrack (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ipt-conntrack_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-conntrack6 (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-conntrack6_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-nat (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-nat_5.4.154-1_mipsel_24kc.ipk
Installing kmod-ipt-nat (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ipt-nat_5.4.154-1_mipsel_24kc.ipk
Package fstools (2021-01-04-c53b1882-1) installed in root is up to date.
Installing ip6tables (1.8.7-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/ip6tables_1.8.7-1_mipsel_24kc.ipk
Installing kmod-nf-reject6 (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-reject6_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-ipt6 (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-ipt6_5.4.154-1_mipsel_24kc.ipk
Installing kmod-ip6tables (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ip6tables_5.4.154-1_mipsel_24kc.ipk
Installing iptables (1.8.7-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/iptables_1.8.7-1_mipsel_24kc.ipk
Package iptables (1.8.7-1) installed in root is up to date.
Package kernel (5.4.154-1-ecc7515846d9a85938da6124aee98749) installed in root is up to date.
Installing kmod-gpio-button-hotplug (5.4.154-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-gpio-button-hotplug_5.4.154-3_mipsel_24kc.ipk
Installing kmod-ipt-offload (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ipt-offload_5.4.154-1_mipsel_24kc.ipk
Installing kmod-nf-flow (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-nf-flow_5.4.154-1_mipsel_24kc.ipk
Installing kmod-leds-gpio (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-leds-gpio_5.4.154-1_mipsel_24kc.ipk
Package libc (1.1.24-3) installed in root is up to date.
Package libgcc1 (8.4.0-3) installed in root is up to date.
Installing libustream-wolfssl20201210 (2020-12-10-68d09243-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libustream-wolfssl20201210_2020-12-10-68d09243-1_mipsel_24kc.ipk
Installing libwolfssl4.8.1.66253b90 (4.8.1-stable-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libwolfssl4.8.1.66253b90_4.8.1-stable-4_mipsel_24kc.ipk
Installing logd (2020-10-25-9ef88681-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/logd_2020-10-25-9ef88681-2_mipsel_24kc.ipk
Installing mtd (26) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/mtd_26_mipsel_24kc.ipk
Package netifd (2021-10-30-8f82742c-1) installed in root is up to date.
Installing odhcp6c (2021-01-09-53f07e90-16) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/odhcp6c_2021-01-09-53f07e90-16_mipsel_24kc.ipk
Installing odhcpd-ipv6only (2021-07-18-bc9d317f-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/odhcpd-ipv6only_2021-07-18-bc9d317f-3_mipsel_24kc.ipk
Installing opkg (2021-06-13-1bf042dd-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/opkg_2021-06-13-1bf042dd-1_mipsel_24kc.ipk
Installing libuclient20201210 (2021-05-14-6a6011df-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libuclient20201210_2021-05-14-6a6011df-1_mipsel_24kc.ipk
Installing uclient-fetch (2021-05-14-6a6011df-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/uclient-fetch_2021-05-14-6a6011df-1_mipsel_24kc.ipk
Installing libpthread (1.1.24-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/libpthread_1.1.24-3_mipsel_24kc.ipk
Installing ppp (2.4.8.git-2020-10-03-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ppp_2.4.8.git-2020-10-03-3_mipsel_24kc.ipk
Installing kmod-lib-crc-ccitt (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-lib-crc-ccitt_5.4.154-1_mipsel_24kc.ipk
Installing kmod-slhc (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-slhc_5.4.154-1_mipsel_24kc.ipk
Installing kmod-ppp (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-ppp_5.4.154-1_mipsel_24kc.ipk
Installing ppp-mod-pppoe (2.4.8.git-2020-10-03-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/ppp-mod-pppoe_2.4.8.git-2020-10-03-3_mipsel_24kc.ipk
Installing kmod-pppox (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-pppox_5.4.154-1_mipsel_24kc.ipk
Installing kmod-pppoe (5.4.154-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/targets/ramips/mt7621/packages/kmod-pppoe_5.4.154-1_mipsel_24kc.ipk
Installing procd (2021-02-23-37eed131-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/procd_2021-02-23-37eed131-1_mipsel_24kc.ipk
Installing libjson-script20210516 (2021-05-16-b14c4688-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/libjson-script20210516_2021-05-16-b14c4688-2_mipsel_24kc.ipk
Installing uci (2020-10-06-52bbc99f-5) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/uci_2020-10-06-52bbc99f-5_mipsel_24kc.ipk
Package uclient-fetch (2021-05-14-6a6011df-1) installed in root is up to date.
Installing urandom-seed (3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/urandom-seed_3_mipsel_24kc.ipk
Installing getrandom (2020-10-25-9ef88681-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/getrandom_2020-10-25-9ef88681-2_mipsel_24kc.ipk
Installing urngd (2020-01-21-c7f7b6b6-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mipsel_24kc/base/urngd_2020-01-21-c7f7b6b6-1_mipsel_24kc.ipk
Configuring libubox20210516.
Configuring libuclient20201210.
Configuring uclient-fetch.
Configuring libpthread.
Configuring opkg.
Configuring libubus20210630.
Configuring libjson-c5.
Configuring libblobmsg-json20210516.
Configuring ubusd.
Configuring ubus.
Configuring libuci20130104.
Configuring busybox.
Configuring kmod-nf-reject6.
Configuring kmod-nf-conntrack.
Configuring kmod-nf-flow.
Configuring libnl-tiny1.
Configuring libwolfssl4.8.1.66253b90.
Configuring libustream-wolfssl20201210.
Configuring kmod-lib-crc-ccitt.
Configuring getrandom.
Configuring kmod-slhc.
Configuring kmod-ppp.
Configuring kmod-pppox.
Configuring kmod-pppoe.
Configuring kmod-nf-reject.
Configuring kmod-nf-ipt.
Configuring kmod-ipt-core.
Configuring kmod-ipt-conntrack.
Configuring jshn.
Configuring netifd.
Configuring jsonfilter.
Configuring usign.
Configuring openwrt-keyring.
Configuring ubi-utils.
Configuring ubox.
Configuring fstools.
Configuring fwtool.
Configuring base-files.
Configuring kmod-nf-nat.
Configuring libjson-script20210516.
Configuring dnsmasq.
Configuring procd.
Configuring libxtables12.
Configuring libip4tc2.
Configuring libip6tc2.
Configuring kmod-nf-conntrack6.
Configuring kmod-ipt-nat.
Configuring firewall.
Configuring kmod-nf-ipt6.
Configuring kmod-ip6tables.
Configuring odhcp6c.
Configuring uci.
Configuring dropbear.
Configuring mtd.
Configuring odhcpd-ipv6only.
Configuring urandom-seed.
Configuring ppp.
Configuring kmod-leds-gpio.
Configuring kmod-gpio-button-hotplug.
Configuring logd.
Configuring iptables.
Configuring ip6tables.
Configuring ca-bundle.
Configuring kmod-ipt-offload.
Configuring urngd.
Configuring ppp-mod-pppoe.

Finalizing root filesystem...
Enabling boot
Enabling bootcount
Enabling cron
Enabling dnsmasq
Enabling done
Enabling dropbear
Enabling firewall
Enabling gpio_switch
Enabling led
Enabling log
Enabling network
Enabling odhcpd
Enabling set-irq-affinity
Enabling sysctl
Enabling sysfixtime
Enabling sysntpd
Enabling system
Enabling umount
Enabling urandom_seed
Enabling urngd
/home/user/openwrt-imagebuilder-21.02.1-ramips-mt7621.Linux-x86_64/staging_dir/host/bin/find: The relative path 'Files' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove that entry from $PATH
make[2]: *** [Makefile:174: prepare_rootfs] Error 1
make[1]: *** [Makefile:123: _call_image] Error 2
make: *** [Makefile:240: image] Error 2
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/dotnet/:/mnt/c/Users/username/AppData/Local/Microsoft/WindowsApps:/snap/bin

It is caused by WSL's default behaviour to add the windows path to the PATH variable. Remove those and the image builder works just fine.

Reference:
https://stackoverflow.com/questions/51336147/how-to-remove-the-win10s-path-from-wsl

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.