mirror of
				https://gitlab.com/alemaire/image-specs.git
				synced 2025-01-17 17:48:20 +00:00 
			
		
		
		
	Updating README
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,5 +1,6 @@ | |||||||
| # suggested build result filename | # suggested build result and log filenames | ||||||
| raspi3.img | raspi3.img | ||||||
|  | raspi3.log | ||||||
| # after compress.sh | # after compress.sh | ||||||
| compr.img | compr.img | ||||||
| compr.img.bz2 | compr.img.bz2 | ||||||
|   | |||||||
							
								
								
									
										69
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										69
									
								
								README.md
									
									
									
									
									
								
							| @@ -9,34 +9,69 @@ See https://wiki.debian.org/RaspberryPi3#Preview_image for where to obtain the l | |||||||
|  |  | ||||||
| ## Option 2: Building your own image | ## Option 2: Building your own image | ||||||
|  |  | ||||||
| If you prefer, you can build a Debian buster Raspberry Pi 3 image yourself. For | If you prefer, you can build a Debian buster Raspberry Pi 3 image | ||||||
| this, first install the | yourself. If you are reading this document online, you should first | ||||||
| [requirements](http://git.liw.fi/vmdb2/tree/README) | clone this repository: | ||||||
| of vmdb2. Then run the following: |  | ||||||
|  |  | ||||||
| ```shell | ```shell | ||||||
| git clone --recursive https://github.com/Debian/raspi3-image-spec | git clone --recursive https://github.com/Debian/raspi3-image-spec | ||||||
| cd raspi3-image-spec | cd raspi3-image-spec | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | For this you will first need to install `vmdb2`. As of July 2018, this | ||||||
|  | repository still ships vmdb2, but will probably be deprecated in the | ||||||
|  | future. You can choose: | ||||||
|  |  | ||||||
|  | - `vmdb2` is available as a package for Testing and Unstable. If your | ||||||
|  |   Debian system is either, quite probably installing it systemwide is | ||||||
|  |   the easiest and most recommended way. | ||||||
|  |  | ||||||
|  | - If you are using Debian stable (stretch) or for some reason prefer | ||||||
|  |   not to install the package, `vmdb2` is presented as a submodule in | ||||||
|  |   this project. First install the | ||||||
|  |   [requirements](http://git.liw.fi/vmdb2/tree/README) of `vmdb2`: | ||||||
|  |  | ||||||
|  | 	```shell | ||||||
|  | 	apt install kpartx parted qemu-utils qemu-user-static python3-cliapp \ | ||||||
|  |     python3-jinja2 python3-yaml | ||||||
|  | 	``` | ||||||
|  |  | ||||||
|  |   Note that `python3-cliapp` is not available in Stretch, but as it | ||||||
|  |   does not carry any dependencies, can be manually installed by | ||||||
|  |   [fetching its .deb package ](https://packages.debian.org/buster/python3-cliapp) | ||||||
|  |   and installing it manually. | ||||||
|  |  | ||||||
| Then edit [raspi3.yaml](raspi3.yaml) to select the Debian repository that you | Then edit [raspi3.yaml](raspi3.yaml) to select the Debian repository that you | ||||||
| want to use: | want to use: | ||||||
|  |  | ||||||
| - If you want to use the snapshot with which the build was tested, use | - The images now build correctly with the main repository! If you want | ||||||
|     `http://snapshot.debian.org/archive/debian/20171007T213914Z/`. This is what |   to build your image following the regular Testing (*buster*) | ||||||
|     is pre-configured in raspi3.yaml. However, due to a [missing |   distribution, leave `raspi3.yaml` as it is | ||||||
|     feature](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763419) on |     - Stable (*stretch*) is not supported, as we require linux ≥ 4.14 | ||||||
|     snapshots, to make the build work, you have to disable an expiration check |       and raspi3-firmware ≥ 1.20171201-1. | ||||||
|     by APT. To do so, edit raspi3.yaml to replace all |  | ||||||
|     `apt-get` invocations with `apt-get -o Acquire::Check-Valid-Until=false` | - Testing is, however, constantly changing. You might want to choose a | ||||||
| - If you want to use the latest versions of each software, you can replace |   specific point in its history to build with. To do this, locate the | ||||||
|     `http://snapshot.debian.org/archive/debian/20171007T213914Z/` in raspi3.yaml |   line with `qemu-debootstrap: buster` in `raspi3.yaml`. Change | ||||||
|     with `http://deb.debian.org/debian`. Of course, this means that the |   `mirror: http://deb.debian.org/debian` to `mirror: | ||||||
|     build may break or fail to boot if there are regressions in the latest |   http://snapshot.debian.org/archive/debian/20171007T213914Z/`.  | ||||||
|     versions. |     - 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 to replace | ||||||
|  |       all `apt-get` invocations with `apt-get -o | ||||||
|  |       Acquire::Check-Valid-Until=false` | ||||||
|  |  | ||||||
| Once you have edited raspi3.yaml, you can generate the image by | Once you have edited raspi3.yaml, you can generate the image by | ||||||
| issuing the following: | issuing the following. If you are using the systemwide `vmdb2`: | ||||||
|  |  | ||||||
|  | ```shell | ||||||
|  | umask 022 | ||||||
|  | sudo env -i LC_CTYPE=C.UTF-8 PATH="/usr/sbin:/sbin:$PATH" \ | ||||||
|  |     vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | Or, if you are using it from the submodule in this repository | ||||||
|  |  | ||||||
| ```shell | ```shell | ||||||
| umask 022 | umask 022 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gunnar Wolf
					Gunnar Wolf