Ensure partition script exits early on error
This commit is contained in:
parent
619496bb51
commit
48ed6f68b0
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@
|
||||||
(builtins.filter (_: _.useSwap) partitions));
|
(builtins.filter (_: _.useSwap) partitions));
|
||||||
in lib.strings.concatLines ([
|
in lib.strings.concatLines ([
|
||||||
"#!/bin/bash"
|
"#!/bin/bash"
|
||||||
|
"set -o errexit"
|
||||||
] ++
|
] ++
|
||||||
(builtins.map (_: _.deviceScript) disks) ++
|
(builtins.map (_: _.deviceScript) disks) ++
|
||||||
lib.optionals ((builtins.length disks) > 0) [
|
lib.optionals ((builtins.length disks) > 0) [
|
||||||
|
|
Loading…
Reference in a new issue