Ensure partition script exits early on error

This commit is contained in:
Manuel Thalmann 2024-09-12 19:02:33 +02:00
parent 619496bb51
commit 48ed6f68b0

View file

@ -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) [