Be a bit more verbose around tinyipa for rescue

Seems we have no real way to grok if there was a rescue setup failure
because we don't log any information to the console about the node
once dhcp has occured.

As such, added an additional line of text to be logged and added
the ip addr command which should save a list of addresses by
interface to the console to assist in CI job troubleshooting.

Change-Id: Ib3f6e24d0687e9da8e551355fe04faf3f86ff582
This commit is contained in:
Julia Kreger 2019-12-17 06:24:10 -08:00
parent a6c0f2ce63
commit e28167a8f5

View File

@ -70,6 +70,8 @@ configure_dhcp_network() {
pidfile="/var/run/udhcpc/${interface}.pid"
/sbin/udhcpc -b -p ${pidfile} -i ${interface} -s /opt/udhcpc.script >> /var/log/udhcpc.log 2>&1
done
echo "Completed DHCP client restart"
ip addr && true
}
if [ -f /etc/ipa-rescue-config/ipa-rescue-password ]; then