diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-17 19:36:04 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-17 19:36:04 +0000 |
commit | 23bb5ad4d2383d84acf3a6d63d3271dc46268f5b (patch) | |
tree | 0e5a1108da1328d9195c7371abdb44263a180f22 /anaconda | |
parent | d78c2fd935cfffface72f6edd39e349bbe0087e5 (diff) | |
download | anaconda-23bb5ad4d2383d84acf3a6d63d3271dc46268f5b.tar.gz anaconda-23bb5ad4d2383d84acf3a6d63d3271dc46268f5b.tar.xz anaconda-23bb5ad4d2383d84acf3a6d63d3271dc46268f5b.zip |
Change findExistingRoots to use the anaconda class, which required a
bunch of changes elsewhere in upgrade.py to also use anaconda. This
required fixing up rescue mode (which was broken anyway) in the same way,
which then required the same sort of stuff done in anaconda.
Oh, and all that was so we could disable a meaningless error message on
searching for existing installations on hard drive installs/upgrades.
I forgot what I was really working on.
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -547,6 +547,7 @@ class Anaconda: self.rootPath = None self.dispatch = None self.isKickstart = False + self.rescue_mount = True def setDispatch(self): self.dispatch = dispatch.Dispatcher(self) @@ -647,6 +648,10 @@ if __name__ == "__main__": setupLoggingFromOpts(opts) + anaconda.rootPath = opts.rootPath + # Default is to prompt to mount the installed system. + anaconda.rescue_mount = not opts.rescue_nomount + if opts.method and opts.method[0] == '@': expandFTPMethod(opts) @@ -692,8 +697,8 @@ if __name__ == "__main__": import rescue, instdata - rescueid = instdata.InstallData([], "fd0", opts.method, opts.display_mode) - rescue.runRescue(opts.rootPath, not opts.rescue_nomount, rescueid) + anaconda.id = instdata.InstallData([], "fd0", opts.method, opts.display_mode) + rescue.runRescue(anaconda) # shouldn't get back here sys.exit(1) @@ -835,7 +840,6 @@ if __name__ == "__main__": if opts.display_mode == 'g' and flags.usevnc: runVNC(vncpassword, vncconnecthost, vncconnectport, doStartupX11Actions) - anaconda.rootPath = opts.rootPath anaconda.intf = getInstallInterface(opts) # imports after setting up the path |