Ignore inexistent partitions during cleanup
This commit is contained in:
parent
485c0c70f3
commit
f02db08ccf
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@
|
|||
appendScript = script: fdiskScript script true;
|
||||
|
||||
cleanup = lib.strings.concatLines (builtins.map
|
||||
(partition: fdiskCommand "--delete ${diskVar} ${toString partition.index}")
|
||||
(partition: "${fdiskCommand "--delete ${diskVar} ${toString partition.index}"} || true")
|
||||
(builtins.filter (_: !_.keepExisting) partitions));
|
||||
|
||||
fdiskCommands = lib.strings.concatLines (
|
||||
|
|
Loading…
Reference in a new issue