From eb0430392ea6e0ef1f7e7b448bb3ab37bdc79068 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 25 Jan 2024 07:59:26 -0600 Subject: [PATCH] install-packages: Exit on error The machine gets into a pretty weird state if `install-packages.sh` fails but continues running. --- install-packages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-packages.sh b/install-packages.sh index 0ec7afd..e8a0ef7 100644 --- a/install-packages.sh +++ b/install-packages.sh @@ -5,6 +5,8 @@ if [ ! -d /etc/ignition/packages.d ]; then exit 0 fi +set -e + cat /etc/ignition/packages.d/* | xargs rpm-ostree install --apply-live -y systemctl preset-all --preset-mode=enable-only