nixpkgs/nixos/modules
Vincent Haupert 5fd478506d 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/`.
2023-08-03 11:46:35 +02:00
..
config nixos/qt: install qt6gtk2 when using gtk2 2023-07-27 15:39:30 -03:00
hardware Merge pull request #244572 from MinerSebas/usb-modeswitch-module-rename 2023-07-25 19:24:14 -06:00
i18n/input-method nixos/fcitx5: add quickPhrase 2023-07-29 00:54:25 +08:00
image nixos/image: use stable target dir for amended repart definitions 2023-08-03 11:46:35 +02:00
installer Merge pull request #246746 from mode89/fix/nixos-install-with-non-empty-mnt 2023-08-02 18:41:46 +02:00
misc Merge pull request #241462 from SuperSandro2000/remove-ddclient 2023-07-08 14:33:00 +02:00
profiles linux-builder: fix eval failure 2023-07-23 18:07:48 +10:00
programs Merge pull request #246386 from hercules-ci/lib-getExe-dont-make-name-assumption 2023-08-02 20:05:52 +02:00
security pam_dp9ik: init at 1.5 2023-07-09 14:12:21 -05:00
services Merge pull request #246564 from erictapen/kanidm 2023-08-02 22:51:18 +02:00
system nixos/boot/initrd-network: add option to enable udhcpc (#240406) 2023-07-31 16:08:56 +02:00
tasks zfs: 'want', don't 'require', systemd-udev-settle 2023-07-28 16:57:12 +10:00
testing Merge pull request #219106 from m-bdf/nixos-testing-increase-device-timeout 2023-06-20 11:48:45 +02:00
virtualisation revert(proxmox-image): pull request #246120 from jakeschurch/add-proxmox-image-addl-disk-size-override 2023-08-02 15:01:44 -04:00
module-list.nix ns-usbloader: init at 7.0 2023-07-29 19:28:32 +02:00
rename.nix nixos/osquery: init 2023-07-19 16:55:29 +02:00