All of lore.kernel.org
 help / color / mirror / Atom feed
* Copy dhclient.leases before switchroot?
@ 2009-05-19 21:50 Warren Togami
  0 siblings, 0 replies; only message in thread
From: Warren Togami @ 2009-05-19 21:50 UTC (permalink / raw)
  To: initramfs

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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-19 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-19 21:50 Copy dhclient.leases before switchroot? Warren Togami

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.