Remove redundancy
This commit is contained in:
parent
f9af3388a7
commit
f70a1580df
1 changed files with 1 additions and 2 deletions
|
@ -104,7 +104,6 @@ let
|
||||||
if append then "--append" else ""
|
if append then "--append" else ""
|
||||||
} ${deviceVar}"
|
} ${deviceVar}"
|
||||||
}";
|
}";
|
||||||
wipeScript = script: fdiskScript script [ ] false;
|
|
||||||
appendScript = index: script: fdiskScript script [ "-N" (builtins.toString index) ] true;
|
appendScript = index: script: fdiskScript script [ "-N" (builtins.toString index) ] true;
|
||||||
|
|
||||||
cleanup = lib.strings.concatLines (builtins.map
|
cleanup = lib.strings.concatLines (builtins.map
|
||||||
|
@ -116,7 +115,7 @@ let
|
||||||
fdiskCommands = lib.strings.concatLines
|
fdiskCommands = lib.strings.concatLines
|
||||||
(lib.optionals config.wipe [
|
(lib.optionals config.wipe [
|
||||||
cleanup
|
cleanup
|
||||||
(wipeScript "label: gpt")
|
(fdiskScript "label: gpt" [ ] false)
|
||||||
] ++ (builtins.concatMap
|
] ++ (builtins.concatMap
|
||||||
(
|
(
|
||||||
partition:
|
partition:
|
||||||
|
|
Loading…
Reference in a new issue