diff options
author | Arian van Putten <arian.vanputten@gmail.com> | 2023-08-22 12:01:16 +0200 |
---|---|---|
committer | Arian van Putten <arian.vanputten@gmail.com> | 2023-08-22 13:09:03 +0200 |
commit | 3eb0214551f0b4a3add6daefee2f15b868902079 (patch) | |
tree | df127e87031d6c47476f226bc0d9e88efac543e5 /nixos/modules/image | |
parent | fbff555535fa8cc1fe8ad6be4b48dc3b48435e60 (diff) |
modules/image/repart: Fix stripNixStorePrefix
It seems it wasn't working
Diffstat (limited to 'nixos/modules/image')
-rw-r--r-- | nixos/modules/image/amend-repart-definitions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/image/amend-repart-definitions.py b/nixos/modules/image/amend-repart-definitions.py index 52f10303eb5ea..fa9b1544ae852 100644 --- a/nixos/modules/image/amend-repart-definitions.py +++ b/nixos/modules/image/amend-repart-definitions.py @@ -53,7 +53,7 @@ def add_closure_to_definition( source = Path(line.strip()) target = str(source.relative_to("/nix/store/")) - target = f":{target}" if strip_nix_store_prefix else "" + target = f":/{target}" if strip_nix_store_prefix else "" copy_files_lines.append(f"CopyFiles={source}{target}\n") @@ -102,7 +102,7 @@ def main() -> None: add_contents_to_definition(definition, contents) closure = config.get("closure") - strip_nix_store_prefix = config.get("stripStorePaths") + strip_nix_store_prefix = config.get("stripNixStorePrefix") add_closure_to_definition(definition, closure, strip_nix_store_prefix) print(target_dir.absolute()) |