-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use i386 qemu-user-static package in Dockerfile and update README #307
Conversation
As an alternative, maybe installing qemu-user-static:i386 is better, since it resolves the problem outside of docker as well? |
Thanks for the suggestion, is a good idea. I will be testing creating an image with that change instead, i.e. keep the image at 64 bits and install 32-bits qemu, and update the PR accordingly. |
At the moment, Buster images are broken when building with 64-bits Qemu.
i386/debian
base image in Dockerfile
@XECDesign I tested now just using the Therefore I updated this PR now to keep the container image as a 64-bits Debian Buster and enable the I also added a warning in the README with instructions on how to do the same on a regular Debian-based host for non-Docker users. Let me know if are okay or want some more changes. |
For what I think is related, if I try to build a Lite image following the instructions here, it works. If I try to build the full desktop image, I get an error about Java certs as in this issue: #317 |
Thanks for the report, I will look into it and check. |
After a long wait I completed a full build of latest Rasbian Buster with current
No build errors of any kind found. As @XECDesign suggested, try a clean build from scratch. |
It was a clean build as it was my first time doing it. When I tried to delete the files in the I did have success with Debian 10 (x86) in Vagrant/Virtualbox btw. I'll report back on the different methods I try and what works and what doesn't. |
Before removing the work directory, be sure to umount any filesystems there. pi-gen doesn't clean up after itself when it fails, so you may have sys and proc mounts there. Deleting those files can result in your system not working properly until reboot. |
That explains what happened then. Perhaps I'll submit a PR to get this added to the readme. |
Here's the results of my limited testing thus far. These are the results on whether or not the three
Note: The Vagrant VMs use Virtualbox as a backend. The images were from the Vagrant |
Closing this PR as it is now more than two years old. |
At the moment, Buster images are broken when building with 64-bits Qemu.
As a workaround, we can build the image using Docker with an
i386/debian
base image that includes 32-bits Qemu binaries. Therefore this PR sets the base image toi386/debian
for Docker builds.Tested built Buster image using
build-docker.sh
under a 64-bits host in a real Raspberry Pi 3B+ device. In fact, this PR was fully created in the device itself :)Updated: see comment #307 (comment)