From e72abfc4a0d77661f668efbaf1493f21617982fb Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Tue, 8 Sep 2026 23:08:36 +0200 Subject: [PATCH 1/2] nixos/image/repart-image: fix Format=empty --- nixos/modules/image/repart-image.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix index 3a01a6dc80f1..b3458a414ba9 100644 --- a/nixos/modules/image/repart-image.nix +++ b/nixos/modules/image/repart-image.nix @@ -109,6 +109,7 @@ let "btrfs" = [ btrfs-progs ]; "xfs" = [ xfsprogs ]; "swap" = [ util-linux ]; + "empty" = [ ]; }; fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems; From c34b750b14a7981615fd8854c9ab1586f8f5df04 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Tue, 8 Sep 2026 23:13:11 +0200 Subject: [PATCH 2/2] nixos/tests/repart: test all fs types --- nixos/tests/appliance-repart-image.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/tests/appliance-repart-image.nix b/nixos/tests/appliance-repart-image.nix index 7422233828a3..d78637734b8f 100644 --- a/nixos/tests/appliance-repart-image.nix +++ b/nixos/tests/appliance-repart-image.nix @@ -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"; + }; + })); }; };