fix(coreos-base/oem-cloudstack): fix DHCP server resolution

The path for network leases has been change in recent versions
of systemd. This fix modified the DHCP server resolution script
used by CloudStack to reflect this change.
This commit is contained in:
Petr Hosek 2014-08-11 14:12:26 +01:00
parent 78459d3b6b
commit 63e3e7c7a0
2 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
get_dhcp_ip() { get_dhcp_ip() {
local leases_dir="/run/systemd/network/leases" local leases_dir="/run/systemd/netif/leases"
while true; do while true; do
if [[ "$(find "${leases_dir}" -type f -size +1c)" ]]; then if [[ "$(find "${leases_dir}" -type f -size +1c)" ]]; then
break break