/usr/share/uvtool/libvirt/remote-wait.sh is in uvtool-libvirt 0~bzr99-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/sh
set -e
# Wait for runlevel 2 (upstart) or 5 (systemd)
while :; do
runlevel=`runlevel|awk '{print $2}'`
[ "$runlevel" = 2 -o "$runlevel" = 5 ] && break
sleep $UVTOOL_WAIT_INTERVAL
done
# Wait for cloud-init's signal
while [ ! -e /var/lib/cloud/instance/boot-finished ]; do sleep $UVTOOL_WAIT_INTERVAL; done
|