From 502452ffab09cb6613c0f573d227419a63631f5b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 Mar 2020 17:29:59 +0100 Subject: contribution: build: add troubleshooting section for APT --- docs/contributing/build-vyos.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'docs/contributing') diff --git a/docs/contributing/build-vyos.rst b/docs/contributing/build-vyos.rst index f9ebec6f..2349ec2f 100644 --- a/docs/contributing/build-vyos.rst +++ b/docs/contributing/build-vyos.rst @@ -128,6 +128,32 @@ Good luck! or ``rolling`` image. Make sure to choose the matching container for the version of VyOS that is being built. +Troubleshooting +^^^^^^^^^^^^^^^ + +Debian APT is not very verbose when it comes to errors. If your ISO build breaks +for whatever reason and you supect its a problem with APT dependencies or +installation you can add this small patch which increases the APT verbosity +during ISO build. + +.. code-block:: Python + + diff --git i/scripts/live-build-config w/scripts/live-build-config + index 1b3b454..3696e4e 100755 + --- i/scripts/live-build-config + +++ w/scripts/live-build-config + @@ -57,7 +57,8 @@ lb config noauto \ + --firmware-binary false \ + --updates true \ + --security true \ + - --apt-options "--yes -oAcquire::Check-Valid-Until=false" \ + + --apt-options "--yes -oAcquire::Check-Valid-Until=false -oDebug::BuildDeps=true -oDebug::pkgDepCache::AutoInstall=true \ + + -oDebug::pkgDepCache::Marker=true -oDebug::pkgProblemResolver=true -oDebug::Acquire::gpgv=true" \ + --apt-indices false + "${@}" + """ + + .. _build_packages: Build packages -- cgit v1.2.3