Build VyOS image image on Debian Jessie environment.
Install Debian jessie.
jessie# apt-get install cowbuilder
jessie# sudo cowbuilder \
--create --distribution squeeze \
--basepath /var/cache/pbuilder/base-vyos-squeeze-amd64.cow
jessie# cd /tmp
jessie# wget https://github.com/vyos/build-iso/blob/helium/tools/setup-vyos-build-env
jessie# chmod 755 setup-vyos-build-env
Login squeeze with --save-after-exec option for save update image
jessie# sudo cowbuilder \
--login \
--save-after-exec \
--bindmount /tmp \
--basepath /var/cache/pbuilder/base-vyos-squeeze-amd64.cow/
And exec ./setup-vyos-build-env script Additonal package needed. (cpio and automake)
squeeze# cd /tmp
squeeze# ./setup-vyos-build-env
squeeze# apt-get install cpio automake
squeeze# exit
Or It is good idea to download build-iso on squeeze with --save-after-exec
option
jessie# git clone https://github.com/vyos/build-iso
login squeeze environment
jessie# sudo cowbuilder \
--login \
--bindmount /tmp \
--basepath /var/cache/pbuilder/base-vyos-squeeze-amd64.cow/
prepare build
squeeze# cd /tmp/build-iso
squeeze# export PATH=/sbin:/usr/sbin:$PATH
squeeze# autoreconf -i
squeeze# ./configure
Replace gpg key (development branch only)
squeeze# rm -f livecd/config.vyatta/chroot_sources/vyatta.chroot.gpg
squeeze# wget -qO livecd/config.vyatta/chroot_sources/vyatta.chroot.gpg \
http://dev.packages.vyos.net/vyos-root-gpg
And make iso
squeeze# make iso