-
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
debootstrap.log doesn't exist on failure #524
Comments
It's this, but I don't know why. |
It means debootstrap failed, so I'd check the log file it generates. |
Sorry, missed the part where you mentioned the log file already. I don't see pi-gen removing the log file. It tries to remove the directory and fails if it's not empty, which is the intended behaviour. On succesfull bootstrap, that directory should be empty. Without being able to reproduce the issue myself, I can't really help. |
Right, the build system was unmounting things before I could check what was going on. The underlying error appears to be
(the same error is in /home/build/pi-gen/work/2021-06-21-test/stage0/rootfs/debootstrap/debootstrap.log) Which I thought was handled by binfmt_misc and qemu-static. The reason I couldn't find the log is that the qcow2 filesystem is unmounted on error. |
Sorry, I'd missed the |
What do you think would be an intuitive way to cope with that? I didn't originally include qcow2 support was because it adds an extra layer of things that can go wrong and makes troubleshooting more difficult. Should the default be to not use qcow? Should pi-gen 'tail' the output of debootstrap.log if it's present? |
@XECDesign IMO qcow2 is the right thing to use, what about grabbing debootstrap.log and copying it out of the work path before unmounting? |
Something along these lines? |
Thank you! |
@nullromo no, this was 3 years ago. Exec format error means that the binary is the wrong type for your machine, i.e. arm binary trying to run on an x86_64 system. |
Thanks. I think I got confused about something, and I was running the wrong version of my code for a while there. I opened a new issue instead. |
See https://builds.sr.ht/~voltagex/job/527248, specifically
pi-gen/scripts/common
Line 25 in bf8c9f5
The text was updated successfully, but these errors were encountered: