Commit 6d64a037 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

Merge branch 'apt-debug' into 'master'

root.sh: Provide additional diagnostics when package installation failed

See merge request Librem5/image-builder!66
parents 500c0ffc 7c2df610
Pipeline #3073 passed with stage
in 14 seconds
...@@ -180,7 +180,10 @@ function setup_locale() ...@@ -180,7 +180,10 @@ function setup_locale()
function install_pkgs() function install_pkgs()
{ {
chroot "${basedir}" apt-get -y update chroot "${basedir}" apt-get -y update
chroot "${basedir}" apt-get -y install ${packages} if ! chroot "${basedir}" apt -y install ${packages}; then
echo "Package installation failed, this might help to diagnose the problem:"
chroot "${basedir}" apt -y -o Debug::pkgProblemResolver=yes install -y --simulate ${packages}
fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment