mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-09 14:31:04 +02:00
Merge pull request #792 from petrhosek/oem-cloudstack-networkd-leases-fix
fix(coreos-base/oem-cloudstack): fix DHCP server resolution
This commit is contained in:
commit
48cb8a1c74
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user