mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 14:33:28 +01:00
add pkgs.parted where partprobe is needed
This commit is contained in:
1 parent
7304727801
commit
79785c1cfc
4 files changed
+14
-4
No files matched your search
@@ -18,9 +18,10 @@ let
|
|||||||
bash
|
bash
|
||||||
coreutils
|
coreutils
|
||||||
gnused
|
gnused
|
||||||
|
parted # for partprobe
|
||||||
systemdMinimal
|
systemdMinimal
|
||||||
nix
|
nix
|
||||||
utillinux
|
util-linux
|
||||||
];
|
];
|
||||||
preVM = ''
|
preVM = ''
|
||||||
${lib.concatMapStringsSep "\n" (disk: "truncate -s ${disk.imageSize} ${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
|
${lib.concatMapStringsSep "\n" (disk: "truncate -s ${disk.imageSize} ${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
|
||||||
|
|||||||
+5
-1
@@ -146,7 +146,11 @@ in
|
|||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
||||||
default = pkgs:
|
default = pkgs:
|
||||||
[ pkgs.gptfdisk pkgs.systemdMinimal ] ++ lib.flatten (map
|
[
|
||||||
|
pkgs.gptfdisk
|
||||||
|
pkgs.systemdMinimal
|
||||||
|
pkgs.parted # for partprobe
|
||||||
|
] ++ lib.flatten (map
|
||||||
(partition:
|
(partition:
|
||||||
lib.optional (partition.content != null) (partition.content._pkgs pkgs)
|
lib.optional (partition.content != null) (partition.content._pkgs pkgs)
|
||||||
)
|
)
|
||||||
|
|||||||
+3
-1
@@ -74,7 +74,9 @@
|
|||||||
internal = true;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
||||||
default = pkgs: (lib.optionals (config.content != null) (config.content._pkgs pkgs));
|
default = pkgs: [
|
||||||
|
pkgs.parted # for partprobe
|
||||||
|
] ++ (lib.optionals (config.content != null) (config.content._pkgs pkgs));
|
||||||
description = "Packages";
|
description = "Packages";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -72,7 +72,10 @@
|
|||||||
internal = true;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
||||||
default = pkgs: [ pkgs.util-linux ] ++ lib.optionals (config.content != null) (config.content._pkgs pkgs);
|
default = pkgs: [
|
||||||
|
pkgs.util-linux
|
||||||
|
pkgs.parted # for partprobe
|
||||||
|
] ++ lib.optionals (config.content != null) (config.content._pkgs pkgs);
|
||||||
description = "Packages";
|
description = "Packages";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user