diskimage-builder/elements/ramdisk-base/init.d/40-check-network-ready
Ben Nemec 5aca301693 Refactor ramdisk element to allow alternate implementations
In preparation for enabling Dracut-based ramdisks, this change
factors out functionality that is common to both busybox and Dracut
ramdisks.  Said functionality is moved to a ramdisk-base element
which is added as a dependency of the ramdisk element.  ramdisk now
only contains the functionality specific to building busybox-based
ramdisks.

bp tripleo-juno-dracut-ramdisks
Change-Id: Iad2907c8be491c88727d87ed5e5a720e5beb66c3
2014-09-26 00:13:55 -05:00

6 lines
159 B
Plaintext

if [ -n "$BOOT_SERVER" ]; then
echo "pinging to boot server $BOOT_SERVER"
wait_for 6 5 ping -c 5 -q "$BOOT_SERVER" > /dev/null
fi
echo "network ready"