diskoScript: add bash to PATH
This commit is contained in:
@@ -36,7 +36,7 @@ in
|
||||
'';
|
||||
disko = cfg: diskoLib.zapCreateMount (eval cfg).config.disko.devices;
|
||||
diskoScript = cfg: pkgs: (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko-zap-create-mount" ''
|
||||
export PATH=${lib.makeBinPath (diskoLib.packages (eval cfg).config.disko.devices pkgs)}:$PATH
|
||||
export PATH=${lib.makeBinPath ((diskoLib.packages (eval cfg).config.disko.devices pkgs) ++ [ pkgs.bash ])}:$PATH
|
||||
${diskoLib.zapCreateMount (eval cfg).config.disko.devices}
|
||||
'';
|
||||
# we keep this old output for backwards compatibility
|
||||
|
@@ -51,7 +51,7 @@ in
|
||||
system.build.disko = builtins.trace "the .disko output is deprecated, plase use .diskoScript instead" config.system.build.diskoScript;
|
||||
|
||||
system.build.diskoScript = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko" ''
|
||||
export PATH=${lib.makeBinPath (diskoLib.packages cfg.devices pkgs)}:$PATH
|
||||
export PATH=${lib.makeBinPath ((diskoLib.packages cfg.devices pkgs) ++ [ pkgs.bash ])}:$PATH
|
||||
${diskoLib.zapCreateMount cfg.devices}
|
||||
'';
|
||||
|
||||
|
Reference in New Issue
Block a user