Copy dhclient.leases before switchroot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mkinitrd does this after dhclient, before switchroot:
cp /var/lib/dhclient/dhclient.leases /sysroot/dev/.dhclient-$dev.leases

/etc/sysconfig/network-scripts/ifup-eth contains:

# copy any lease obtained by the initrd
if [ -f /dev/.dhclient-${DEVICE}.leases ] ; then
    mv -f /dev/.dhclient-${DEVICE}.leases /var/lib/dhclient/dhclient-${DEVICE}.leases
    [ -x /sbin/restorecon ] && restorecon /var/lib/dhclient/dhclient-${DEVICE}.leases > /dev/null 2>&1
fi

I personally have never needed this, but some networks might need dhclient to refresh the lease after bootup?

Implementing this would be Red Hat specific, and I'm not sure how valuable it is.  Any opinions?

Warren Togami
wtogami@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux