• David Johnson's avatar
    Workaround smart dhclient on centos7; fixes #54. · 095f2ce1
    David Johnson authored
    From the comments:
    
      Work around dhclient-scripts that forcibly set preferred_lft and
      valid_lft.  We cannot override the lease time sent from the server
      with a real infinite value (our best bet would be UINT32_MAX, and that
      sucks), so we intercept dhclient's name for the new lease time it's
      about to feed to the ip command.  Does this suck any less?  We cannot
      ex post facto run `ip addr change ...` just to reset the preferred_lft
      and valid_lft fields to "forever"; that seems to be tightly coupled
      with assigning an address to an interface (and we don't want to re-add
      the address; that is the whole point of dhclient-script!).  (Some
      dhclients also do not process "expire never" in dhclient.conf
      correctly, so this is what we are left with!)
    095f2ce1
Name
Last commit
Last update
..
GNUmakefile.in Loading commit data...
dhclient-enter-hooks Loading commit data...
emulab-dracut.conf Loading commit data...
emulab-ld.so.conf Loading commit data...
group Loading commit data...
gshadow Loading commit data...
ifcfg-eth99 Loading commit data...
ifcfg.template Loading commit data...
ifup-emulabcnet Loading commit data...
init Loading commit data...
login.defs Loading commit data...
logrotate-syslog Loading commit data...
mkifcfgs Loading commit data...
modules.conf Loading commit data...
myinstall Loading commit data...
network Loading commit data...
ntp.conf Loading commit data...
ntpd.service Loading commit data...
passwd Loading commit data...
rc.local Loading commit data...
rsyslog.conf Loading commit data...
securetty Loading commit data...
selinux-config Loading commit data...
shadow Loading commit data...
sudoers Loading commit data...