Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Do not drive over network config files for livecd installs (#479893) (http://www.linux-archive.org/ubuntu-user/227246-do-not-drive-over-network-config-files-livecd-installs-479893-a.html)

David Cantrell 01-13-2009 08:40 PM

Do not drive over network config files for livecd installs (#479893)
 
If we're doing a live CD install, back out of the network.write()
method before we destroy anything.
---
network.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/network.py b/network.py
index b50605e..98cde5d 100644
--- a/network.py
+++ b/network.py
@@ -516,6 +516,9 @@ class Network:
return False

def write(self, instPath=', anaconda=None):
+ if flags.livecdInstall:
+ return
+
if len(self.netdevices.values()) == 0:
return

--
1.6.0.3

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


All times are GMT. The time now is 11:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.