pull/307/merge
Hugo Hromic 2020-01-22 15:39:21 -05:00 committed by GitHub
commit 9fa3cf3796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 8 deletions

View File

@ -2,13 +2,14 @@ FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && \
RUN dpkg --add-architecture i386 && \
apt-get -y update && \
apt-get -y install \
git vim parted \
quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod\
quilt coreutils qemu-user-static:i386 debootstrap zerofree zip dosfstools \
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod \
&& rm -rf /var/lib/apt/lists/*
COPY . /pi-gen/
VOLUME [ "/pi-gen/work", "/pi-gen/deploy"]
VOLUME ["/pi-gen/work", "/pi-gen/deploy"]

View File

@ -10,7 +10,7 @@ either Debian Buster or Ubuntu Xenial and is known to have issues building on
earlier releases of these systems. On other Linux distributions it may be possible
to use the Docker build described below.
To install the required dependencies for pi-gen you should run:
To install the required dependencies for pi-gen you should run (*):
```bash
apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
@ -20,6 +20,22 @@ dosfstools bsdtar libcap2-bin grep rsync xz-utils file git curl
The file `depends` contains a list of tools needed. The format of this
package is `<tool>[:<debian-package>]`.
**(*) Warning:** please note that there is currently an issue when building with the
64-bits version of the `qemu-user-static` package. As a workaround, you can use the
32-bits `qemu-user-static:i386` package instead.
To do this, first add the `i386` architecture to your Debian-based system:
```bash
dpkg --add-architecture i386
apt-get update
```
Then replace `qemu-user-static` with `qemu-user-static:i386` in the instructions above.
Also note that the included Dockerfile in pi-gen already includes this workaround.
For more info refer to: https://github.com/RPi-Distro/pi-gen/issues/271
## Config
@ -325,9 +341,6 @@ follows:
# Troubleshooting
## `64 Bit Systems`
Please note there is currently an issue when compiling with a 64 Bit OS. See https://github.com/RPi-Distro/pi-gen/issues/271
## `binfmt_misc`
Linux is able execute binaries from other architectures, meaning that it should be