install-packages: Exit on error
The machine gets into a pretty weird state if `install-packages.sh` fails but continues running.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user