From f0d8d36af90aca96bc514c409c0e25f1cb273441 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 22 May 2024 14:49:54 +0200 Subject: [PATCH] nixos-modules/microvm/store-disk: create squashfs with uid/gid 0 --- nixos-modules/microvm/store-disk.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-modules/microvm/store-disk.nix b/nixos-modules/microvm/store-disk.nix index 03852d00..000ab621 100644 --- a/nixos-modules/microvm/store-disk.nix +++ b/nixos-modules/microvm/store-disk.nix @@ -8,7 +8,7 @@ let kernelAtLeast = lib.versionAtLeast config.boot.kernelPackages.kernel.version; erofsFlags = builtins.concatStringsSep " " ( - [ "-zlz4hc" ] + [ "-zlz4hc" "--force-uid=0" "--force-gid=0" ] # ++ # lib.optional (kernelAtLeast "5.13") "-C1048576" ++