I am trying to build custom image of VyOS for development (in kernel space and user space). I am following instruction from: Build VyOS β VyOS 1.5.x (circinus) documentation - and I built a custom kernel with following changes in x86_64_vyos_defconfig file:
CONFIG_HEADERS_INSTALL=y
CONFIG_MODULE_SIG_FORMAT=n
CONFIG_MODULE_SIG=n
CONFIG_MODULE_SIG_FORCE=n
CONFIG_MODULE_SIG_ALL=n
I ran following scripts/commands as root (changed https to hxxps because of VyOS forum locks):
apt install build-essential flex bison libssl-dev libelf-dev bc git
git clone -b current --single-branch hxxps://github.com/vyos/vyos-build
After executing last command I always got following error:
OSError: Command 'lb build 2>&1' failed
I tried to execute next scripts from vyos link and coping *.deb to vyos-build/packages/ (for example product of build-linux-firmware.sh) but without any valid results. At the end I always got the same error.
P.S. In case of building ISO without any modification it works like a charm.
Did the job, and builded *.deb files by this script worked properly during building ISO. For others - if you want to install linux headers (they are generated during previous command), you should import linux-headers*.deb on your new ISO based host and ran the following command: