Skip to content
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

run_qemu.sh: add !#/bin/sh shebang for mkosi.postinst #106

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jan 23, 2025

Critical fix for mkosi versions v25 and above that include massive change commit b3a3e7e7fcb2 ("Introduce mkosi-sandbox and stop using subuids for image builds")

Fixes the following failure:

Running postinstall script kernel/qbuild/mkosi.postinst
Traceback (most recent call last):
  File "mkosi/mkosi/sandbox.py", line 924, in <module>
  File "mkosi/mkosi/sandbox.py", line 913, in main
  File "<frozen os>", line 609, in execvp
  File "<frozen os>", line 632, in _execvpe
OSError: [Errno 8] Exec format error
"/work/postinst final" returned non-zero exit code 1.

Signed-off-by: Marc Herbert [email protected]

Critical fix for mkosi versions v25 and above that include massive
change commit b3a3e7e7fcb2 ("Introduce mkosi-sandbox and stop using
subuids for image builds")

Fixes the following failure:
```
Running postinstall script kernel/qbuild/mkosi.postinst
Traceback (most recent call last):
  File "mkosi/mkosi/sandbox.py", line 924, in <module>
  File "mkosi/mkosi/sandbox.py", line 913, in main
  File "<frozen os>", line 609, in execvp
  File "<frozen os>", line 632, in _execvpe
OSError: [Errno 8] Exec format error
"/work/postinst final" returned non-zero exit code 1.
```
Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review January 23, 2025 22:21
@stellarhopper stellarhopper merged commit 27c295d into pmem:main Jan 23, 2025
2 checks passed
@marc-hb marc-hb deleted the post-shebang branch January 23, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants