Open zoic21 opened 3 years ago
It seems like grep hangs in the second stage of debootstrap. I tried running build.sh a debian buster i386 vm instead of using docker and hit the same issue.
Reverting dd96ca1c8629da6589b381546e2b7677c7611744 fixes it for me.
I think I must have assumed success too early, reverting that commit doesn't actually fix it. I'm still stuck on "Preconfiguring packages". The command that is hung is /usr/bin/qemu-aarch64-static /usr/bin/grep -F _guess*
No success for me also... It's stuck on same line
I'm seeing the same issue with a Docker build from Ubuntu 18 5.4.0-66-generic (unsupported).
That grep command appears to be from /tmp/console-setup.config.{RANDOM}
. Specifically, it initially gets stuck in the call to decode_codeset
within that script. If this is killed it then gets stuck in the encode_codeset
function. Common to both of these is a preceding call to echo "$codesets"
. Maybe echo
isn't ending its output stream for some reason?
Regardless, removing console-setup
from stage2/01-sys-tweaks/00-packages
skips over this particular hang, but results in a segfault for me, YMMV. I'm not sure how critical that package is to the final system image.
Today I verified that the issue does not occur if you build on an aarch64 host.
I used my existing 64 bit raspios install on my rpi4 (~5 months old, I've never run apt upgrade on it) to successfully build a new image using the docker build. Incidentally, I had to revert dd96ca1c8629da6589b381546e2b7677c7611744 first, because it caused the i386 docker base image to be used even on a pi.
Then, I booted my new up-to-date image on my rpi3b and successfully built another image using the non-docker build and the current arm64 branch (041b97464c01ac6453e4aab59dc931220237bc16). I did it on a USB flash drive and it took literally all day, the 4 really is an incredible improvement.
So, I believe this issue has to do with using qemu in stage 2 of debootstrap.
Haven't seen this issue myself. Does it happen if you don't use Docker at all? I've seen hangs similar to this when using quite old versions of qemu. I'd try building outside of docker or with a docker base image that's based on a recent OS release.
Hello,
I have an issue since few month, build of arm64 freeze on
Preconfiguring packages ...
. I test more than 24h and nothing more.I use docker build, did someone got these issue ?
Thank in advance.