mirror of
https://gitlab.com/monolithify/base-image-build.git
synced 2024-11-24 05:31:23 +00:00
13 lines
337 B
Bash
13 lines
337 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
vmIPaddress=$(virsh domifaddr rocky | awk '/ipv4/ {print $4}' | awk -F'/' '{print $1}')
|
||
|
|
||
|
while [ -z "$vmIPaddress" ]; do
|
||
|
sleep 3
|
||
|
vmIPaddress=$(virsh domifaddr rocky | awk '/ipv4/ {print $4}' | awk -F'/' '{print $1}')
|
||
|
done
|
||
|
|
||
|
export vmIPaddress="$vmIPaddress"
|
||
|
|
||
|
echo "Builder VM IP (vmIPaddress) is: $vmIPaddress"
|