Closed jnnks closed 2 years ago
It looks like a binfmt issue, but I have no idea how Docker affects things, since that's maintained by the the community.
Yes, I agree. My distro does not come with a dedicated binfmt-support package and relies on systemd's implementation which was not accessible.
hello @jnnks, excuse my ignorance, but how did you solve that? Thanks.
Edit: Sorry I just realized it's explained at the end of the README. But even by following the instructions there I still get the same error. And more problematically, I use Travis-ci to build the image and it also fails there. It used to work great. Any info on the solutions used are welcome. Thanks.
I ended up using a dedicated Ubuntu VM, since I was too lazy to figure out systemd-binfmt.service
on Solus Linux :D
Maybe your distro is also relying on systemd?
Thanks @jnnks for your answer and thank you for making me discover Solus Linux!
The system installed on my personal computer is Arch Linux. It's the first time I encounter this issue so I have not even dived yet into whether it's relying on systemd.
Thanks for suggesting the VM solution, it will help temporarily.
Finding a work around or a solution on a personal OS can be attained through tinkering. But I also rely on Continuous Integration services to automatically build the image and tinkering there is a bit more limited.
No problem at all, thanks for asking. I'm afraid I can't help you with Jenkins though, so good luck there :)
It looks like building within the Ubuntu VM works (although I run into more issues, they seem to not be related to the actual build process). So in the end, I used to be able to build flawlessly on Travis-ci.com and my system (Arch Linux) with the Docker method. But now both the "normal" build.sh and the Docker method fail on both Travis and my system.
I had to resort to the solution above, installing a Ubuntu VM on top of Arch Linux. Then I use the Docker method. That's a lot of virtualisation / emulation / slicing to be able to build pi-gen. But for the moment I can confirm it seems to work fine.
I am not able to build an image using the docker script. The build crashes during the first stage with the following error message:
and
tail -5 /pi-gen/work/test/stage0/debootstrap.log
:Docker was complaining earlier in the build that:
The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
and the error from debootstrap.log seems to point into a similar direction.I am using all default values. What can I do here?