Add more binfmt errors and hints to README

This commit is contained in:
jannik 2022-02-22 19:01:25 +01:00 committed by XECDesign
parent b1d54c82fe
commit b2bd87c512

View file

@ -478,11 +478,16 @@ possible to make use of `pi-gen` on an x86_64 system, even though it will be run
ARM binaries. This requires support from the [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc) ARM binaries. This requires support from the [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc)
kernel module. kernel module.
You may see the following error: You may see one of the following errors:
``` ```
update-binfmts: warning: Couldn't load the binfmt_misc module. update-binfmts: warning: Couldn't load the binfmt_misc module.
``` ```
```
W: Failure trying to run: chroot "/pi-gen/work/test/stage0/rootfs" /bin/true
and/or
chroot: failed to run command '/bin/true': Exec format error
```
To resolve this, ensure that the following files are available (install them if necessary): To resolve this, ensure that the following files are available (install them if necessary):
@ -492,3 +497,5 @@ To resolve this, ensure that the following files are available (install them if
``` ```
You may also need to load the module by hand - run `modprobe binfmt_misc`. You may also need to load the module by hand - run `modprobe binfmt_misc`.
If you are using WSL to build you may have to enable the service `sudo update-binfmts --enable`