Image build on WSL (windows subsystem for Linux) on W11

I've successfully used image builder for years on pure Ubuntu Linux, so I thought I'd try it out on WSL,
which has a version of Ubuntu Linux.

It almost works, but at the end of the build there is a complaint about a relative path in the PATH variable:

/home/myname/openwrt-imagebuilder-21.02.3-ath79-nand.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

Disclaimer: not using WSL2 myself.

I assume you're falling over spaces in some of the directories in your $PATH (Program Files comes to mind), just remove those from your PATH definition.

1 Like

Confirming WSL2 builds on W11 work fine. Will set specifics here later.

Just for reference, building with OpenSUSE 15.3:

~> cat /etc/os-release
NAME="openSUSE Leap"
ID_LIKE="suse opensuse"
PRETTY_NAME="openSUSE Leap 15.3"


> wsl --status
Default Distribution: openSUSE-Leap-15.3
Default Version: 2
Kernel version:
> ver
Microsoft Windows [Version 10.0.22000.1219]

Thanks to fodiator & slh; removing spaces from PATH solved the problem.

The spaces were inserted by nVidia for something nVidia installed; I'm not clear whether
these spaces would work for nVidia either.

I hope someone from nVidia is listening...

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