Hello,
I faced an issue yesterday, while trying to create a custom image with debian bullseye, a specific 5.11 rc1 kernel tree and a couple of packages. The output looked like this:
[ o.k. ] Installing base system [ Stage 2/2 ]
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
W: Failure trying to run: /sbin/ldconfig
W: See //debootstrap/debootstrap.log for details
[ error ] ERROR in function create_rootfs_cache [ debootstrap.sh:177 ]
[ error ] Debootstrap base system second stage failed
[ o.k. ] Process terminated
[ o.k. ] Unmounting [ /home/basti/Kernel/build/.tmp/rootfs-dev-nanopct4-bullseye-no-yes/ ]
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:66 ]
[ error ] debootstrap-ng was interrupted
[ o.k. ] Process terminated
I was not able to reach the mentioned debug file as it didn't exist. So, I started to test the same configuration with docker and with my desktop machine, as I wanted to rule out that it is problem with my new laptop. This didn't turn out to be the case.
Next I played around with configuration and I finally discovered that removing the `PACKAGE_LIST_ADDITIONAL` option within the `userpatches/lib.config` fixed the issue.
Here is the configuration I use for reference (which worked without issues around 20 days ago):
lib.config
KERNELBRANCH="branch:master"
KERNELSOURCE="https://git.linuxtv.org/media_tree.git/"
The line I deleted, I also tried it with just a single argument `python3` which failed aswell:
PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL python3 python3-dev gcc-10 gcc python3-yaml python3-ply python3-jinja2 libgnutls28-dev openssl libboost-dev git ninja-build pkg-config debhelper dh-autoreconf autotools-dev autoconf-archive doxygen graphviz libasound2-dev libtool libjpeg-dev libudev-dev libx11-dev udev make git vim vim-nox libevent-dev python3-pip g++-10 silversearcher-ag g++ cmake"
config-example.conf
KERNEL_ONLY="no"
KERNEL_CONFIGURE="yes"
CLEAN_LEVEL="make,debs,oldcache"
DEST_LANG="en_US.UTF-8"
# advanced
EXTERNAL_NEW="prebuilt"
EXPERT="yes"
LIB_TAG="master"
BOARD="nanopct4"
BRANCH="dev"
RELEASE="bullseye"
EXTRAWIFI="no"
WIREGUARD="no"
AUFS="no"
INSTALL_HEADERS="no"
BUILD_MINIMAL="yes"
BUILD_DESKTOP="no"
I hope this can be of help to someone and maybe we can find the root of this new issue.
Greetings,
Sebastian