From e7df9b65ec4e912956a661cdc69aaa5effc96f27 Mon Sep 17 00:00:00 2001 From: Oliver Walsh Date: Wed, 7 Jun 2023 18:22:27 +0100 Subject: [PATCH] Grow volumes on hardened overcloud-full image --- templates/baremetalset/cloudinit/userdata | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/baremetalset/cloudinit/userdata b/templates/baremetalset/cloudinit/userdata index bda5b2a5..5ee0f1ed 100644 --- a/templates/baremetalset/cloudinit/userdata +++ b/templates/baremetalset/cloudinit/userdata @@ -15,3 +15,6 @@ chpasswd: bootcmd: # fix BLS entries - set -x; if [ -e /boot/loader/entries/ffffffffffffffffffffffffffffffff-* ]; then MACHINEID=$(cat /etc/machine-id) && rename "ffffffffffffffffffffffffffffffff" "$MACHINEID" /boot/loader/entries/ffffffffffffffffffffffffffffffff-* ; fi +runcmd: + # grow volumes on hardened image if command exists + - if [ -e /usr/local/sbin/growvols ]; then /usr/local/sbin/growvols --yes /=8GB /tmp=1GB /var/log=10GB /var/log/audit=2GB /home=1GB /var=100%; fi