about summary refs log tree commit diff
path: root/nixos/modules/image
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-09-13 11:58:33 +0200
committernikstur <nikstur@outlook.com>2023-09-13 12:03:50 +0200
commite2699cd256e560c72faf0c65d32205b8e7edb52b (patch)
treea7a7c944be8f0f05f8a24435db0afba27066c2e5 /nixos/modules/image
parentf902c6a1b93cc368c81b870029fb9653b219a9d4 (diff)
nixos/image: fix for systemd 254
Diffstat (limited to 'nixos/modules/image')
-rw-r--r--nixos/modules/image/repart.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/image/repart.nix b/nixos/modules/image/repart.nix
index 4a0021e9a56e5..e567485c9d342 100644
--- a/nixos/modules/image/repart.nix
+++ b/nixos/modules/image/repart.nix
@@ -188,6 +188,7 @@ in
           nativeBuildInputs = [
             cfg.package
             pkgs.fakeroot
+            pkgs.util-linux
           ] ++ fileSystemTools;
         } ''
         amendedRepartDefinitions=$(${amendRepartDefinitions} ${partitions} ${definitionsDirectory})
@@ -195,7 +196,7 @@ in
         mkdir -p $out
         cd $out
 
-        fakeroot systemd-repart \
+        unshare --map-root-user fakeroot systemd-repart \
           --dry-run=no \
           --empty=create \
           --size=auto \