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
Using `--depth 1`with `git clone`will create a shallow clone, only containing
41
+
`--depth 1`can be added afer `git clone`to create a shallow clone, only containing
42
42
the latest revision of the repository. Do not do this on your development machine.
43
43
44
44
Also, be careful to clone the repository to a base path **NOT** containing spaces.
@@ -88,8 +88,11 @@ The following environment variables are supported:
88
88
89
89
*`RELEASE` (Default: bullseye)
90
90
91
-
The release version to build images against. Valid values are jessie, stretch,
92
-
buster, bullseye, and testing.
91
+
The release version to build images against. Valid values are any supported
92
+
Debian release. However, since different releases will have different sets of
93
+
packages available, you'll need to either modify your stages accordingly, or
94
+
checkout the appropriate branch. For example, if you'd like to build a
95
+
`buster` image, you should do so from the `buster` branch.
93
96
94
97
*`APT_PROXY` (Default: unset)
95
98
@@ -183,17 +186,26 @@ The following environment variables are supported:
183
186
To get the current value from a running system, look in
184
187
`/etc/timezone`.
185
188
186
-
*`FIRST_USER_NAME` (Default: "pi" )
189
+
*`FIRST_USER_NAME` (Default: `pi`)
187
190
188
-
Username for the first user
191
+
Username for the first user. This user only exists during the image creation process. Unless
192
+
`DISABLE_FIRST_BOOT_USER_RENAME` is set to `1`, this user will be renamed on the first boot with
193
+
a name chosen by the final user. This security feature is designed to prevent shipping images
194
+
with a default username and help prevent malicious actors from taking over your devices.
189
195
190
-
*`FIRST_USER_PASS` (Default: "raspberry")
196
+
*`FIRST_USER_PASS` (Default: unset)
191
197
192
-
Password for the first user
198
+
Password for the first user. If unset, the account is locked.
199
+
200
+
*`DISABLE_FIRST_BOOT_USER_RENAME` (Default: `0`)
201
+
202
+
Disable the renaming of the first user during the first boot. This make it so `FIRST_USER_NAME`
203
+
stays activated. `FIRST_USER_PASS` must be set for this to work. Please be aware of the implied
204
+
security risk of defining a default username and password for your devices.
193
205
194
206
*`WPA_ESSID`, `WPA_PASSWORD` and `WPA_COUNTRY` (Default: unset)
195
207
196
-
If these are set, they are use to configure `wpa_supplicant.conf`, so that the Raspberry Pi can automatically connect to a wireless network on first boot. If `WPA_ESSID` is set and `WPA_PASSWORD` is unset an unprotected wireless network will be configured. If set, `WPA_PASSWORD` must be between 8 and 63 characters.
208
+
If these are set, they are use to configure `wpa_supplicant.conf`, so that the Raspberry Pi can automatically connect to a wireless network on first boot. If `WPA_ESSID` is set and `WPA_PASSWORD` is unset an unprotected wireless network will be configured. If set, `WPA_PASSWORD` must be between 8 and 63 characters.`WPA_COUNTRY` is a 2-letter ISO/IEC 3166 country Code, i.e. `GB`
197
209
198
210
*`ENABLE_SSH` (Default: `0`)
199
211
@@ -211,6 +223,13 @@ The following environment variables are supported:
211
223
public key authentication. Note that if SSH is not enabled this will take
212
224
effect when SSH becomes enabled.
213
225
226
+
*`SETFCAP` (Default: unset)
227
+
228
+
* Setting to `1` will prevent pi-gen from dropping the "capabilities"
229
+
feature. Generating the root filesystem with capabilities enabled and running
230
+
it from a filesystem that does not support capabilities (like NFS) can cause
231
+
issues. Only enable this if you understand what it is.
232
+
214
233
*`STAGE_LIST` (Default: `stage*`)
215
234
216
235
If set, then instead of working through the numeric stages in order, this list will be followed. For example setting to `"stage0 stage1 mystage stage2"` will run the contents of `mystage` before stage2. Note that quotes are needed around the list. An absolute or relative path can be given for stages outside the pi-gen directory.
@@ -488,7 +507,7 @@ A 64 bit image can be generated from the `arm64` branch in this repository. Just
488
507
replace the command from [this section](#getting-started-with-building-your-images)
489
508
by the one below, and follow the rest of the documentation:
0 commit comments