summaryrefslogtreecommitdiffstats
path: root/dracut/anaconda-netroot.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-03-16 17:33:54 -0400
committerWill Woods <wwoods@redhat.com>2012-03-16 17:33:54 -0400
commit0624ebc7d723f3cf4b8aaf3899ca824254f24775 (patch)
tree7c0b7180c5dff131ce4c05861353d39cf10cd6b7 /dracut/anaconda-netroot.sh
parent06b5348a4ac0d8df8885bad0477cd4d45b0b1f30 (diff)
downloadanaconda-0624ebc7d723f3cf4b8aaf3899ca824254f24775.tar.gz
anaconda-0624ebc7d723f3cf4b8aaf3899ca824254f24775.tar.xz
anaconda-0624ebc7d723f3cf4b8aaf3899ca824254f24775.zip
make sure we save the network setup for any network device we used
anaconda expects any device brought up in stage1 to still be active, so let's make sure we pass along the required info for NetworkManager.
Diffstat (limited to 'dracut/anaconda-netroot.sh')
-rwxr-xr-xdracut/anaconda-netroot.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 56c1cda11..57c647deb 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -44,14 +44,5 @@ case $repo in
;;
esac
-# TODO: probably shouldn't do this if mounting the net repo fails
-
-# need these to write out the ifcfg files / leases for NetworkManager
-# TODO: this should be a save_netroot_data function in net-lib.sh
-[ -e /tmp/net.ifaces ] || echo "$netif" > /tmp/net.ifaces
-read IFACES < /tmp/net.ifaces
-for iface in $IFACES ; do
- for f in /tmp/dhclient.$iface.*; do
- [ -f $f ] && cp $f /tmp/net.${f#/tmp/dhclient.}
- done
-done
+# save the ifcfg file / dhcp lease for NetworkManager
+save_netinfo $netif