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