install-packages: Exit on error

The machine gets into a pretty weird state if `install-packages.sh`
fails but continues running.
master
Dustin 2024-01-25 07:59:26 -06:00
parent 9e790d055c
commit eb0430392e
1 changed files with 2 additions and 0 deletions

View File

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