When building vyos with build-vyos-image, if there is a / in the --version argument, the build process will fail and throws the following error:
P: Build completed successfully
Traceback (most recent call last):
File "/vyos/./build-vyos-image", line 517, in <module>
I: Checking if packages required for VyOS image build are installed
shutil.copy("live-image-{0}.hybrid.iso".format(build_config["architecture"]),
File "/usr/lib/python3.11/shutil.py", line 419, in copy
build/config
I: Cleaning the build workspace
I: Setting up additional APT entries
I: Configuring live-build
I: Starting image build
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.11/shutil.py", line 258, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'vyos-test/current-amd64.iso'This is due to the final copying did not check for any / in the version string.