FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-23-2012, 07:50 PM
David Lehman
 
Default Propagate anaconda.methodstr into ksdata.method.

---
anaconda | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index 5cc670e..b0384c6 100755
--- a/anaconda
+++ b/anaconda
@@ -733,6 +733,32 @@ if __name__ == "__main__":
else:
ksdata = kickstart.AnacondaKSHandler(anaconda)

+ # set ksdata.method based on anaconda.method if it isn't already set
+ if anaconda.methodstr and not ksdata.method.method:
+ if anaconda.methodstr.startswith("cdrom"):
+ ksdata.method.method = "cdrom"
+ elif anaconda.methodstr.startswith("nfs"):
+ ksdata.method.method = "nfs"
+ url = anaconda.methodstr.split(":", 1)[1]
+ (opts, server, path) = iutil.parseNfsUrl(url)
+ ksdata.method.server = server
+ ksdata.method.dir = path
+ ksdata.method.opts = opppts
+ elif anaconda.methodstr.startswith("hd:"):
+ ksdata.method.method = "harddrive"
+ url = anaconda.methodstr.split(":", 1)[1]
+ if url.count(":") == 1:
+ (device, path) = url.split(":")
+ else:
+ (device, fstype, path) = url.split(":")
+ ksdata.method.partition = device
+ ksdata.method.dir = path
+ elif anaconda.methodstr.startswith("http") or
+ anaconda.methodstr.startswith("ftp"):
+ ksdata.method.method = "url"
+ ksdata.method.nosslverify = flags.nosslverify
+ ksdata.method.proxy = anaconda.proxy # FIXME: username/password
+
# now start the interface
setupDisplay(anaconda, opts)

--
1.7.9.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-24-2012, 07:08 PM
Chris Lumens
 
Default Propagate anaconda.methodstr into ksdata.method.

> anaconda | 26 ++++++++++++++++++++++++++
> 1 files changed, 26 insertions(+), 0 deletions(-)

We're going to end up needing a fair bit more code like this to set
other stuff from the command line into the ksdata.

And then, we're going to need to clean up the anaconda file because
it'll be a big mess.

> + ksdata.method.opts = opppts

Got a couple too many Ps in here.

- Chris

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

Thread Tools




All times are GMT. The time now is 07:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org