]> git.ipfire.org Git - thirdparty/dracut.git/commit
write-ifcfg.sh: add UUID=.. and save the lease files with the same uuid
authorWill Woods <wwoods@redhat.com>
Wed, 7 Mar 2012 22:21:54 +0000 (17:21 -0500)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Mar 2012 09:58:42 +0000 (10:58 +0100)
commit66666c670a462548df4ea4c8069d54b8c309ecf4
treed1f6f1e2eed696463163e077ed9d3e7d92c24210
parentd37ad6aea04932196df06139b27d3869385617f9
write-ifcfg.sh: add UUID=.. and save the lease files with the same uuid

As described in https://bugzilla.redhat.com/show_bug.cgi?id=541410#c2,
if you want NetworkManager to take over an interface that you're using
for NFS root (or other network root device), you need to:

a) set UUID=<uuid> in ifcfg-<iface>, and
b) save the lease file as /var/lib/dhclient-<uuid>-<iface>.lease

This patch should make write-ifcfg handle both these things.
modules.d/45ifcfg/write-ifcfg.sh