mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
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:
parent
78459d3b6b
commit
63e3e7c7a0
@ -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