Merge 4bf1ac039a
into 24bb01dec2
This commit is contained in:
commit
9fa3cf3796
|
@ -2,13 +2,14 @@ FROM debian:buster
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get -y update && \
|
RUN dpkg --add-architecture i386 && \
|
||||||
|
apt-get -y update && \
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
git vim parted \
|
git vim parted \
|
||||||
quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \
|
quilt coreutils qemu-user-static:i386 debootstrap zerofree zip dosfstools \
|
||||||
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod\
|
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY . /pi-gen/
|
COPY . /pi-gen/
|
||||||
|
|
||||||
VOLUME [ "/pi-gen/work", "/pi-gen/deploy"]
|
VOLUME ["/pi-gen/work", "/pi-gen/deploy"]
|
||||||
|
|
21
README.md
21
README.md
|
@ -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
|
earlier releases of these systems. On other Linux distributions it may be possible
|
||||||
to use the Docker build described below.
|
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
|
```bash
|
||||||
apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
|
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
|
The file `depends` contains a list of tools needed. The format of this
|
||||||
package is `<tool>[:<debian-package>]`.
|
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
|
## Config
|
||||||
|
|
||||||
|
@ -325,9 +341,6 @@ follows:
|
||||||
|
|
||||||
# Troubleshooting
|
# 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`
|
## `binfmt_misc`
|
||||||
|
|
||||||
Linux is able execute binaries from other architectures, meaning that it should be
|
Linux is able execute binaries from other architectures, meaning that it should be
|
||||||
|
|
Loading…
Reference in New Issue
Block a user