mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
lib: rename umount to destroy
This commit is contained in:
parent
f0aa14154e
commit
480d61c3f7
1 changed files with 6 additions and 6 deletions
|
@ -372,7 +372,7 @@ let
|
||||||
The scripts generated by disko
|
The scripts generated by disko
|
||||||
'';
|
'';
|
||||||
default = { pkgs, checked ? false }: {
|
default = { pkgs, checked ? false }: {
|
||||||
umountScript = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko-umount" ''
|
destroyScript = (diskoLib.writeCheckedBash { inherit pkgs checked binPrefix; }) "disko-destroy" ''
|
||||||
export PATH=${lib.makeBinPath (with pkgs; [
|
export PATH=${lib.makeBinPath (with pkgs; [
|
||||||
util-linux
|
util-linux
|
||||||
e2fsprogs
|
e2fsprogs
|
||||||
|
@ -380,7 +380,7 @@ let
|
||||||
zfs
|
zfs
|
||||||
lvm2
|
lvm2
|
||||||
])}:$PATH
|
])}:$PATH
|
||||||
${cfg.config._umount}
|
${cfg.config._destroy}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
formatScript = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko-format" ''
|
formatScript = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko-format" ''
|
||||||
|
@ -399,8 +399,8 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# These are useful to skip copying executables uploading a script to an in-memory installer
|
# These are useful to skip copying executables uploading a script to an in-memory installer
|
||||||
umountScriptNoDeps = (diskoLib.writeCheckedBash { inherit pkgs checked; noDeps = true; }) "disko-umount" ''
|
destroyScriptNoDeps = (diskoLib.writeCheckedBash { inherit pkgs checked; noDeps = true; }) "disko-destroy" ''
|
||||||
${cfg.config._umount}
|
${cfg.config._destroy}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
formatScriptNoDeps = (diskoLib.writeCheckedBash { inherit pkgs checked; noDeps = true; }) "disko-format" ''
|
formatScriptNoDeps = (diskoLib.writeCheckedBash { inherit pkgs checked; noDeps = true; }) "disko-format" ''
|
||||||
|
@ -416,7 +416,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
_umount = lib.mkOption {
|
_destroy = lib.mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -475,7 +475,7 @@ let
|
||||||
The script to umount, create and mount all devices defined by disko.devices
|
The script to umount, create and mount all devices defined by disko.devices
|
||||||
'';
|
'';
|
||||||
default = ''
|
default = ''
|
||||||
${cfg.config._umount}
|
${cfg.config._destroy}
|
||||||
${cfg.config._create}
|
${cfg.config._create}
|
||||||
${cfg.config._mount}
|
${cfg.config._mount}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue