summary refs log tree commit diff
path: root/nixos/modules/image
diff options
context:
space:
mode:
authorArian van Putten <arian.vanputten@gmail.com>2023-08-22 12:01:16 +0200
committerArian van Putten <arian.vanputten@gmail.com>2023-08-22 13:09:03 +0200
commit3eb0214551f0b4a3add6daefee2f15b868902079 (patch)
treedf127e87031d6c47476f226bc0d9e88efac543e5 /nixos/modules/image
parentfbff555535fa8cc1fe8ad6be4b48dc3b48435e60 (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.py4
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())