You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,8 @@ A simple example for building Hassbian:
89
89
=======
90
90
*`USE_QEMU` (Default: `"0"`)
91
91
92
-
This enable the Qemu mode and set filesystem and image suffix if set to 1.
92
+
Setting to '1' enables the QEMU mode - creating an image that can be mounted via QEMU for an emulated
93
+
environment. These images include "-qemu" in the image file name.
93
94
94
95
95
96
A simple example for building Raspbian:
@@ -117,7 +118,7 @@ The following process is followed to build images:
117
118
There are a number of different files and directories which can be used to
118
119
control different parts of the build process:
119
120
120
-
-**00-run.sh** - A unix shell script. Needs to be made executable for it to run
121
+
-**00-run.sh** - A unix shell script. Needs to be made executable for it to run.
121
122
122
123
-**00-run-chroot.sh** - A unix shell script which will be run in the chroot
123
124
of the image build directory. Needs to be made executable for it to run.
@@ -129,9 +130,12 @@ The following process is followed to build images:
129
130
separated, per line.
130
131
131
132
-**00-packages-nr** - As 00-packages, except these will be installed using
132
-
the ```--no-install-recommends -y``` parameters to apt-get
133
+
the ```--no-install-recommends -y``` parameters to apt-get.
133
134
134
-
-**00-patches** - A directory containing patch files to be applied
135
+
-**00-patches** - A directory containing patch files to be applied, using quilt.
136
+
If a file named 'EDIT' is present in the directory, the build process will
137
+
be interrupted with a bash session, allowing an opportunity to create/revise
138
+
the patches.
135
139
136
140
* If the stage directory contains files called "EXPORT_NOOBS" or "EXPORT_IMAGE" then
137
141
add this stage to a list of images to generate
@@ -158,6 +162,12 @@ continue:
158
162
CONTINUE=1 ./build-docker.sh
159
163
```
160
164
165
+
After successful build, the build container is by default removed. This may be undesired when making incremental changes to a customized build. To prevent the build script from remove the container add
166
+
167
+
```bash
168
+
PRESERVE_CONTAINER=1 ./build-docker.sh
169
+
```
170
+
161
171
There is a possibility that even when running from a docker container, the
162
172
installation of `qemu-user-static` will silently fail when building the image
163
173
because `binfmt-support`_must be enabled on the underlying kernel_. An easy
@@ -225,14 +235,14 @@ If you wish to build up to a specified stage (such as building up to stage 2
225
235
for a lite system), place an empty file named `SKIP` in each of the `./stage`
226
236
directories you wish not to include.
227
237
228
-
Then remove the `EXPORT*` files from `./stage4` (if building up to stage 2) or
229
-
from `./stage2` (if building a minimal system).
238
+
Then add an empty file named `SKIP_IMAGES` to `./stage4` (if building up to stage 2) or
0 commit comments