Page MenuHomeVyOS Platform

Build Causes Errors When "--version" Contains Slashes ("/")
In progress, NormalPublicBUG


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
  File "/usr/lib/python3.11/", line 419, in copy
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/", 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.


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

I have also created a pull request that fixes this issue:

Viacheslav changed the task status from Open to In progress.Sun, Mar 31, 11:10 AM
Viacheslav assigned this task to rts-kotori.
Viacheslav triaged this task as Normal priority.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.