Commit Graph

2 Commits (master)

Author SHA1 Message Date
Dustin 4f49686ff1 Fix dhclient removing the IP address on renew
basementhud/pipeline/head This commit looks good Details
For some reason, `dhclient` fires an *EXPIRE* event every time it renews
the DHCP lease, even if the lease has not expired.  `dhclient-script`
then removes the IP address from the interface, which of course breaks
the connection to the NBD server and blocks all reads from the root
filesystem.  To avoid this strange situation, we need to stop
`dhclient-script` acting on the *EXPIRE* event.  Luckily, it provides a
"hook" mechanism that we can use; since the hook script is dot-sourced,
we can just `exit` the process to avoid any further changes in that run.
2022-04-06 16:46:44 -05:00
Dustin d6139d4884 Switch from NetworkManager to dhclient
basementhud/pipeline/head This commit looks good Details
NetworkManager is a memory hog.  We don't need it to do anything except
renew the DHCP lease when it's time, so let's switch to a more
lightweight alternative.  Unfortunately, Fedora does not include any
systemd units for `dhclient`, so we have to provide our own.
2022-04-05 17:58:19 -05:00