summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatthew Lear <matthew.lear@raspberrypi.com>2024-10-29 10:15:10 +0000
committerGitHub <noreply@github.com>2024-10-29 10:15:10 +0000
commitb8e497cf217402283b712af5be91c1384946429d (patch)
tree2c21adaa17004520cc8c6c0f2633c015ec3781f0 /README.md
parent9dfbb1546db161697dcba1038aabebeb076b0942 (diff)
Allow export image customisation (#801)
* Allow export image customisation Add new variable EXPORT_CONFIG_DIR to set the location of the scripts pigen will run when exporting an image. Setting this is optional. If not specified, the current location is retained. By utilising STAGE_LIST AND EXPORT_CONFIG_DIR, a user can construct custom images out-of-tree without modification to any defaults. (cherry picked from commit e5e6ceeaf46f52f77b759d3d35aef8bbd0a69c8b) * Shellcheck and style fixes Fixed shellcheck warnings and made the changes more consistent with the surrounding code --------- Co-authored-by: Serge Schneider <serge@raspberrypi.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 71be938..a246b5f 100644
--- a/README.md
+++ b/README.md
@@ -205,6 +205,10 @@ The following environment variables are supported:
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.
+ * `EXPORT_CONFIG_DIR` (Default: `$BASE_DIR/export-image`)
+
+ If set, use this directory path as the location of scripts to run when generating images. An absolute or relative path can be given for a location outside the pi-gen directory.
+
A simple example for building Raspberry Pi OS:
```bash