diff options
| author | Vincent Haupert <vincent@yaxi.tech> | 2023-08-03 10:44:35 +0200 |
|---|---|---|
| committer | Vincent Haupert <vincent@yaxi.tech> | 2023-08-03 11:46:35 +0200 |
| commit | 5fd478506d4867e52311d63cb56dc5e01c0f46ad (patch) | |
| tree | 3d06cf7025debbce628392e3edd8a7804e137a8f /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | d85f641287e4f632e9ee3708f0af6d8a41380e36 (diff) | |
nixos/image: use stable target dir for amended repart definitions
Output the amended repart definitions to a well-known directory in
$TMPDIR instead of using a temporary directory with a random directory
name.
The output file `repart-output.json` also contains the full path to the
repart definition file used to create the partition. As
`amend-repart-definitions.py` uses `tempfile.mkdtemp`, this introduces
an impurity:
```json
{
"type" : "root-x86-64",
"label" : "rootfs",
"uuid" : "f2fa2e49-e443-45d2-a2e2-c3754cab6363",
"file" : "/build/tmppjo7kv5o/rootfs.conf",
"node" : "image.raw2",
"offset" : 135266304,
"old_size" : 0,
"raw_size" : 1651101696,
"old_padding" : 0,
"raw_padding" : 0,
"activity" : "create",
}
```
This commit changes the parent directory of the amended repart
definitions to `/build/amended-repart.d/`.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
