You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 14
Next »
1. Setup Debian 10 Virtual machine to build DANOS
Download and install a Debian 10 virtual machine (or another preferred form of creating a Debian 10 build environment), then log into it.
Install the image build dependencies:
apt install live-build cpio wget ca-certificates apt-utils
|
2. Obtain the livebuild configuration and package-lists from DANOS repository and Build
Install all the required build dependencies of your custom package(s) and build it(them). Instructions on how to do so are out of the scope of this document.
You can find the exact file name for the tarball on the repository
wget http://repos.danosproject.org.s3-website-us-west-1.amazonaws.com/livebuild/danos-1908-amd64-vrouter.livebuild.tar
tar xf *livebuild.tar
cd danos-1908-amd64-vrouter
|
mkdir -p config/archives/
|
cd ./config/archives
echo 'deb http://s3-us-west-1.amazonaws.com/repos.danosproject.org/standard/ 1908 main' > standard.list.chroot
echo 'deb http://s3-us-west-1.amazonaws.com/repos.danosproject.org/bootstrap/ 1908 main' > bootstrap.list.chroot
wget https://s3-us-west-1.amazonaws.com/repos.danosproject.org/Release.key -O standard.key.chroot
wget https://s3-us-west-1.amazonaws.com/repos.danosproject.org/Release.key -O bootstrap.key.chroot
cd ../..
|
mkdir -p config/packages.chroot/
cp <CUSTOM PACKAGE> config/packages.chroot/
|
sed -i 's/--.*distribution .*\\/--distribution '"stretch"' \\/' auto/config
|
Once the build finishes, a live-bootable hybrid EFI/legacy BIOS image and an ONIE image, together with metadata, will be found in the working directory:
ls
auto
binary
build.log
cache
chroot
chroot.files
chroot.packages.install
chroot.packages.live
config
danos-1908-amd64-vrouter_20190830T1106-amd64.contents
danos-1908-amd64-vrouter_20190830T1106-amd64.files
danos-1908-amd64-vrouter_20190830T1106-amd64.hybrid.iso
danos-1908-amd64-vrouter_20190830T1106-amd64.hybrid.iso-ONIE.bin
danos-1908-amd64-vrouter_20190830T1106-amd64.hybrid.iso.zsync
danos-1908-amd64-vrouter_20190830T1106-amd64.packages
local
sharch_body.sh
|