modules/image/repart: fix Format=empty (#561424)

This commit is contained in:
nikstur
2026-09-08 22:46:43 +00:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -109,6 +109,7 @@ let
"btrfs" = [ btrfs-progs ];
"xfs" = [ xfsprogs ];
"swap" = [ util-linux ];
"empty" = [ ];
};
fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems;

View File

@@ -90,7 +90,16 @@ in
Minimize = "guess";
};
};
};
}
// (lib.genAttrs [ "squashfs" "erofs" "btrfs" "xfs" "swap" "empty" ] (fsType: {
repartConfig = {
Type = "linux-generic";
Format = fsType;
SizeMinBytes = "10M";
SizeMaxBytes = "10M";
};
}));
};
};