summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorjrb <jrb>2004-08-23 23:21:16 +0000
committerjrb <jrb>2004-08-23 23:21:16 +0000
commitb674c064457806e944f303e63ca965c5ce7a8a9a (patch)
tree192c79d3b1f67560811475b609188ed1f516a281 /anaconda
parent1e785bd9bacdc21846283e043945088f12b7ae41 (diff)
downloadanaconda-b674c064457806e944f303e63ca965c5ce7a8a9a.tar.gz
anaconda-b674c064457806e944f303e63ca965c5ce7a8a9a.tar.xz
anaconda-b674c064457806e944f303e63ca965c5ce7a8a9a.zip
make rootpath work nicer
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda15
1 files changed, 14 insertions, 1 deletions
diff --git a/anaconda b/anaconda
index cefce4db7..d53d72f73 100755
--- a/anaconda
+++ b/anaconda
@@ -522,6 +522,7 @@ for n in args:
elif (str == '-r' or str == '--rootpath'):
rootPath = arg
flags.setupFilesystems = 0
+ flags.rootpath = 1
logFile = sys.stderr
elif (str == '--traceonly'):
traceOnly = 1
@@ -840,7 +841,7 @@ time.sleep(3)
# 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 and (iutil.getArch() != "s390" and not os.access("/mnt/runtime/usr/X11R6/bin/Xorg", os.X_OK)):
+if not (flags.test or flags.rootpath) and (iutil.getArch() != "s390" and not os.access("/mnt/runtime/usr/X11R6/bin/Xorg", os.X_OK)):
dup_log(_("Graphical installation not available... "
"Starting text mode."))
time.sleep(2)
@@ -1116,6 +1117,18 @@ if keymap:
dispatch.skipStep("keyboard", permanent = 1)
instClass.setKeyboard(id, keymap)
+# Skip the disk options in rootpath mode
+if flags.rootpath:
+ dispatch.skipStep("partitionmethod", permanent = 1)
+ dispatch.skipStep("partitionmethodsetup", permanent = 1)
+ dispatch.skipStep("autopartition", permanent = 1)
+ dispatch.skipStep("autopartitionexecute", permanent = 1)
+ dispatch.skipStep("fdisk", permanent = 1)
+ dispatch.skipStep("bootloadersetup", permanent = 1)
+ dispatch.skipStep("bootloader", permanent = 1)
+ dispatch.skipStep("bootloaderadvanced", permanent = 1)
+ dispatch.skipStep("upgbootloader", permanent = 1)
+
# set up the headless case
if isHeadless == 1:
id.setHeadless(isHeadless)