diff options
| author | Antoine Amarilli <a3nm@a3nm.net> | 2017-10-25 10:55:04 +0200 |
|---|---|---|
| committer | Antoine Amarilli <a3nm@a3nm.net> | 2017-10-25 10:55:04 +0200 |
| commit | 5910bf20b8a68e3d198846294397544ffdace667 (patch) | |
| tree | baf03f206f5ab49d3e9e93bcc6504fcaf2d6622a | |
| parent | 331f68931a0726f2c790aa69bf1d6f23054c6321 (diff) | |
document apt-get workaround
Fixes: #1
| -rw-r--r-- | README.md | 27 |
1 files changed, 23 insertions, 4 deletions
@@ -9,11 +9,33 @@ See https://wiki.debian.org/RaspberryPi3#Preview_image for where to obtain the l ## Option 2: Building your own image -If you prefer, you can build a Debian buster Raspberry Pi 3 image using: +If you prefer, you can build a Debian buster Raspberry Pi 3 image yourself. For +this, first run the following: ```shell git clone --recursive https://github.com/Debian/raspi3-image-spec cd raspi3-image-spec +``` + +Then edit [raspi3.yaml](raspi3.yaml) to select the Debian repository that you +want to use: + +- If you want to use the snapshot with which the build was tested, use + `http://snapshot.debian.org/archive/debian/20171007T213914Z/`. This is what + is pre-configured in raspi3.yaml. However, due to a [missing + feature](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763419) on + snapshots, to make the build work, you have to disable an expiration check + by APT. To do so, edit [raspi3.yaml](raspi3.yaml) to replace all + `apt-get` invocations with `apt-get -o Acquire::Check-Valid-Until=false` +- If you want to use the latest versions of each software, you can replace + `http://snapshot.debian.org/archive/debian/20171007T213914Z/` in raspi3.yaml + with the URL of your favorite Debian mirror. Of course, this means that the + build may break if there are regressions in the latest versions. + +Once you have edited [raspi3.yaml](raspi3.yaml), you can generate the image by +issuing: + +```shell sudo ./vmdb2/vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log ``` @@ -36,6 +58,3 @@ ssh root@rpi3 # Enter password “raspberry” ``` -## Reproducibility - -The image currently uses http://snapshot.debian.org/archive/debian/20171007T213914Z/ for ensuring a reproducible build. |
