I Hope I’m in the correct section of the forum otherwise please let me know.
I’m having issues making a custom Vyos 1.3.0 iso. I’m using the docker container vyos/vyos-build:equuleus and using the latest commit of the equuleus branch of the vyos-build repository. I’m following the steps from this guide : Build VyOS — VyOS 1.4.x (sagitta) documentation
When in the container, just using the configure command and making the ISO works fine.
However when using custom kernel debs in the packages directory (/vyos/packages/) the build fails with dependencies issues for squashfs-tools.
For the moment I’ve tried building the kernel version 5.4.158 myself (with the provided script and no modification to the configuration or source code) and also just downloading the ones from the official vyos repositories to the packages directory. It failed every time with the following error.
[2021-11-10 20:50:09] lb binary_rootfs P: Begin building root filesystem image... Reading package lists... Building dependency tree... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: squashfs-tools : Depends: libzstd1 (>= 1.4.0) but 1.3.8+dfsg-3+deb10u2 is to be installed E: Unable to correct problems, you have held broken packages. P: Begin unmounting filesystems... P: Saving caches...
What’s weird is that when looking at the Jenkins build squashfs-tools is supposed to require liblzo2-2 and here my build shows it requires libzstd1.
When chrooting inside the build/chroot folder and manually trying to install the package the error confirms itself with the exact same error.
I’ve managed to install squashfs-tools by modifying the file “/etc/apt/preferences” and replacing “debian” by “buster” at line 8. When doing this it also uses the same dependencies as in the Jenkins build.