mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
modules/image/repart: fix Format=empty (#561424)
This commit is contained in:
@@ -109,6 +109,7 @@ let
|
||||
"btrfs" = [ btrfs-progs ];
|
||||
"xfs" = [ xfsprogs ];
|
||||
"swap" = [ util-linux ];
|
||||
"empty" = [ ];
|
||||
};
|
||||
|
||||
fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user