summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-02 15:30:15 -0500
committerChris Lumens <clumens@redhat.com>2009-12-03 13:04:25 -0500
commit9581135046aa223a9374b3d0fd19eba3d46051b3 (patch)
treebe119647adbf9c0cc874c198d21a7a5b907ff246 /anaconda
parent22e0f8532c707c05bdfd841f53e06181832ff5fe (diff)
downloadanaconda-9581135046aa223a9374b3d0fd19eba3d46051b3.tar.gz
anaconda-9581135046aa223a9374b3d0fd19eba3d46051b3.tar.xz
anaconda-9581135046aa223a9374b3d0fd19eba3d46051b3.zip
Remove rootPath mode.
This mode is decaying as anaconda moves forward with things like udev, dbus etc. No one is really working on making sure they continue to work. Let's stop pretending and also get rid of some additional complicated ways to run anaconda.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda28
1 files changed, 3 insertions, 25 deletions
diff --git a/anaconda b/anaconda
index 3734741d0..faa5544d8 100755
--- a/anaconda
+++ b/anaconda
@@ -167,11 +167,6 @@ def parseOptions():
def resolution_cb (option, opt_str, value, parser):
parser.values.runres = value
- def rootpath_cb (option, opt_str, value, parser):
- parser.values.rootPath = os.path.abspath(value)
- flags.setupFilesystems = False
- flags.rootpath = True
-
op = OptionParser()
# Interface
op.add_option("-C", "--cmdline", dest="display_mode", action="store_const", const="c")
@@ -189,8 +184,6 @@ def parseOptions():
op.add_option("-d", "--debug", dest="debug", action="store_true", default=False)
op.add_option("--kickstart", dest="ksfile")
op.add_option("--rescue", dest="rescue", action="store_true", default=False)
- op.add_option("-r", "--rootpath", action="callback", callback=rootpath_cb, dest="rootPath",
- default="/mnt/sysimage", nargs=1, type="string")
op.add_option("-t", "--test", action="store_true", default=False)
op.add_option("--targetarch", dest="targetArch", nargs=1, type="string")
@@ -458,7 +451,7 @@ class Anaconda:
self.methodstr = None
self.stage2 = None
self.backend = None
- self.rootPath = None
+ self.rootPath = "/mnt/sysimage"
self.dispatch = None
self.isKickstart = False
self.rescue_mount = True
@@ -665,7 +658,6 @@ 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
@@ -756,7 +748,7 @@ if __name__ == "__main__":
if iutil.isS390():
opts.isHeadless = True
- if not flags.test and not flags.rootpath and not flags.livecdInstall:
+ if not flags.test and not flags.livecdInstall:
isys.auditDaemon()
# setup links required for all install types
@@ -891,7 +883,7 @@ if __name__ == "__main__":
# now determine if we're going to run in GUI or TUI mode
#
# if no X server, we have to use text mode
- if not (flags.test or flags.rootpath or x_already_set) and (not iutil.isS390() and not os.access("/usr/bin/Xorg", os.X_OK)):
+ if not (flags.test or x_already_set) and (not iutil.isS390() and not os.access("/usr/bin/Xorg", os.X_OK)):
stdoutLog.warning(_("Graphical installation is not available. "
"Starting text mode."))
time.sleep(2)
@@ -1045,20 +1037,6 @@ if __name__ == "__main__":
# are correctly formed and refer to actual devices.
ksdata.execute()
- # Skip the disk options in rootpath mode
- if flags.rootpath:
- anaconda.dispatch.skipStep("parttype", permanent = 1)
- anaconda.dispatch.skipStep("autopartitionexecute", permanent = 1)
- anaconda.dispatch.skipStep("partition", permanent = 1)
- anaconda.dispatch.skipStep("storagedone", permanent = 1)
- anaconda.dispatch.skipStep("bootloader", permanent = 1)
- anaconda.dispatch.skipStep("bootloaderadvanced", permanent = 1)
- anaconda.dispatch.skipStep("upgbootloader", permanent = 1)
-
- if flags.rootpath:
- anaconda.dispatch.skipStep("bootloadersetup", permanent = 1)
- anaconda.dispatch.skipStep("instbootloader", permanent = 1)
-
# set up the headless case
if opts.isHeadless == 1:
anaconda.id.setHeadless(opts.isHeadless)