summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-05-05 19:36:27 +0000
committerErik Troan <ewt@redhat.com>1999-05-05 19:36:27 +0000
commitc9126c5176174f855a21fd2e429c708a466f70a0 (patch)
treee94cf8bce3fad0c925f9acc0470f7600316e7bbf /anaconda
parentb488e51d7e29d0ba395777f7c0b53e22820e0d25 (diff)
downloadanaconda-c9126c5176174f855a21fd2e429c708a466f70a0.tar.gz
anaconda-c9126c5176174f855a21fd2e429c708a466f70a0.tar.xz
anaconda-c9126c5176174f855a21fd2e429c708a466f70a0.zip
reworked install flags
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda33
1 files changed, 23 insertions, 10 deletions
diff --git a/anaconda b/anaconda
index cdb3174f1..d659f95ea 100755
--- a/anaconda
+++ b/anaconda
@@ -2,14 +2,16 @@
import sys, getopt, os
-(args, extra) = getopt.getopt(sys.argv[1:], 'p:gTtdr:', [ 'gui', 'text', 'test', 'force', 'debug', 'rootpath=', 'testpath=' ])
+(args, extra) = getopt.getopt(sys.argv[1:], 'p:gTtdr:f',
+ [ 'gui', 'text', 'test', 'debug', 'rootpath=',
+ 'testpath=', 'mountfs' ])
mode = None
test = 0
-force = 0
debug = 0
rootPath = '/mnt/sysimage'
-runLive = 0
+localInstall = 0
+forceMount = 0
for n in args:
(str, arg) = n
@@ -23,21 +25,21 @@ for n in args:
debug = 1
elif (str == '-r' or str == '--rootpath'):
rootPath = arg
- runLive = 1
+ localInstall = 1
elif (str == '-p' or str == '--imagepath'):
imagepath = arg
- elif (str == '--force'):
- force = 1
+ elif (str == '--mountfs'):
+ forceMount = 1
if (debug):
import pdb
pdb.set_trace()
-if (not test and os.getpid() > 10 and not force):
+if (not test and not localInstall and os.getpid() > 10):
print "you're running me on a live system! that's incredibly stupid."
sys.exit(1)
-if (test):
+if (os.path.exists('rpmmodule')):
sys.path.append('balkan')
sys.path.append('rpmmodule')
sys.path.append('isys')
@@ -78,9 +80,20 @@ else:
method = InstallMethod(imagepath)
intf = InstallInterface()
-todo = ToDo(intf, method, rootPath, runLive)
+
+if localInstall:
+ installPackages = 1
+ setupFilesystems = 0
+if test:
+ installPackages = 0
+ setupFilesystems = 0
+if forceMount:
+ setupFilesystems = 1
+
+todo = ToDo(intf, method, rootPath, installSystem = installPackages,
+ setupFilesystems = setupFilesystems)
intf.run(todo)
-todo.installSystem()
+todo.doInstall()
del intf