ignition/install-packages.sh

14 lines
268 B
Bash

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
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
systemctl start after-install.target