Rebuild VyOS kernel Step

From VyOS
Jump to: navigation, search

Rebuild VyOS kernel Step

First clone build-iso.

git clone git://github.com/vyos/build-iso.git
cd build-iso

Update submodule. $branch is branch name (eg. helium)

Available flavors.

  • amd64-vyos
  • amd64-vyos-virt
  • 586-vyos
  • 586-vyos-virt
branch=helium
flavor=amd64-vyos

git submodule update --init pkgs/linux-image
cd pkgs/linux-image
git checkout $branch

Execute build-flavour.sh to generate control file. and ignore last error.

./debian/bin/build-flavour.sh $flavor

...
make[1]: *** [debian/control-real] Error 1
make[1]: Leaving directory `/home/arch/build-iso/pkgs/linux-image'
make: *** [debian/control] Error 2

Make sure you have required tools installed

apt-get install devscripts kernel-package bc

Finally, execute make

cd ../../ # Top directory in build-iso.
make linux-image