about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2024-06-04 22:28:05 +0200
committerGitHub <noreply@github.com>2024-06-04 22:28:05 +0200
commit1baf7d7e4ee9c04f05f8289e0a79ebb0a9f62b91 (patch)
tree4e586327019aecd60eab5d983f56175fa0c12d08 /nixos/modules
parent83b947e59ff7526258d5ecb37d6d7078ca22ccf7 (diff)
parentd7a9d49c422d53b01da9fa899d97c2bc53401938 (diff)
Merge pull request #314890 from danielbarter/repart-image-fix
repart-image: remove --map-root-user flag from unshare
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/image/repart-image.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix
index 59d5fc26efe9b..e404067299004 100644
--- a/nixos/modules/image/repart-image.nix
+++ b/nixos/modules/image/repart-image.nix
@@ -10,7 +10,6 @@
 , mypy
 , systemd
 , fakeroot
-, util-linux
 
   # filesystem tools
 , dosfstools
@@ -105,7 +104,6 @@ in
   nativeBuildInputs = [
     systemd
     fakeroot
-    util-linux
   ] ++ lib.optionals (compression.enable) [
     compressionPkg
   ] ++ fileSystemTools;
@@ -148,7 +146,7 @@ in
     runHook preBuild
 
     echo "Building image with systemd-repart..."
-    unshare --map-root-user fakeroot systemd-repart \
+    fakeroot systemd-repart \
       ''${systemdRepartFlags[@]} \
       ${imageFileBasename}.raw \
       | tee repart-output.json