[PATCH f17-branch 2/4] save ifcfg for every interface we bring up

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

 



It doesn't matter why we brought up the interface - we want to hand the
info over to NM regardless. So save the netinfo for all onlined
interfaces.
---
 dracut/anaconda-netroot.sh       |    3 ---
 dracut/fetch-kickstart-net.sh    |    3 ---
 dracut/parse-anaconda-options.sh |    3 +++
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 6be34a7..2486e30 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -51,6 +51,3 @@ case $repo in
         return 1
     ;;
 esac
-
-# save the ifcfg file / dhcp lease for NetworkManager
-save_netinfo $netif
diff --git a/dracut/fetch-kickstart-net.sh b/dracut/fetch-kickstart-net.sh
index 4dd7454..d871eae 100755
--- a/dracut/fetch-kickstart-net.sh
+++ b/dracut/fetch-kickstart-net.sh
@@ -47,6 +47,3 @@ if fetch_url "$kickstart" /tmp/ks.cfg; then
 else
     warn "failed to fetch kickstart from $kickstart"
 fi
-
-# save the ifcfg file / dhcp lease for NetworkManager
-save_netinfo $netif
diff --git a/dracut/parse-anaconda-options.sh b/dracut/parse-anaconda-options.sh
index 755c33f..cd041f4 100755
--- a/dracut/parse-anaconda-options.sh
+++ b/dracut/parse-anaconda-options.sh
@@ -100,5 +100,8 @@ if [ -n "$updates" ]; then
     echo "live.updates=$updates" >> /etc/cmdline.d/75anaconda-options.conf
 fi
 
+# make sure we get ifcfg for every interface that comes up
+echo "save_netinfo $netif" > $hookdir/initqueue/online/anaconda-ifcfg.sh
+
 # re-read the commandline args
 unset CMDLINE
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux