Merge pull request #247102 from yaxitech/image-repart-package-option
This commit is contained in:
commit
afa8d16f74
1 changed files with 10 additions and 3 deletions
|
@ -88,6 +88,13 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = lib.mkPackageOption pkgs "systemd-repart" {
|
||||||
|
default = "systemd";
|
||||||
|
example = lib.literalExpression ''
|
||||||
|
pkgs.systemdMinimal.override { withCryptsetup = true; }
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
partitions = lib.mkOption {
|
partitions = lib.mkOption {
|
||||||
type = with lib.types; attrsOf (submodule partitionOptions);
|
type = with lib.types; attrsOf (submodule partitionOptions);
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -178,9 +185,9 @@ in
|
||||||
in
|
in
|
||||||
pkgs.runCommand cfg.name
|
pkgs.runCommand cfg.name
|
||||||
{
|
{
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = [
|
||||||
fakeroot
|
cfg.package
|
||||||
systemd
|
pkgs.fakeroot
|
||||||
] ++ fileSystemTools;
|
] ++ fileSystemTools;
|
||||||
} ''
|
} ''
|
||||||
amendedRepartDefinitions=$(${amendRepartDefinitions} ${partitions} ${definitionsDirectory})
|
amendedRepartDefinitions=$(${amendRepartDefinitions} ${partitions} ${definitionsDirectory})
|
||||||
|
|
Loading…
Reference in a new issue