summaryrefslogtreecommitdiffstats
path: root/pyanaconda/flags.py
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2013-02-06 16:09:51 -0800
committerBrian C. Lane <bcl@redhat.com>2013-02-08 10:13:07 -0800
commit151ebab12ecb6bb7eebd6ca35b8d10ec25ccde16 (patch)
tree9653fadcc0a1d9a5d7490da4bef6b3c2076a6ddb /pyanaconda/flags.py
parent20b027211e466c48266cadb9f3ad60650dabdc66 (diff)
downloadanaconda-151ebab12ecb6bb7eebd6ca35b8d10ec25ccde16.tar.gz
anaconda-151ebab12ecb6bb7eebd6ca35b8d10ec25ccde16.tar.xz
anaconda-151ebab12ecb6bb7eebd6ca35b8d10ec25ccde16.zip
Add --dirinstall command
This disables the storage spoke and installs to /mnt/sysimage without mounting any filesystems. If something is already mounted on /mnt/sysimage it leaves it untouched. This can be useful for utilities like livemedia-creator which will mount a filesystem image on the directory and then run anaconda to install to it.
Diffstat (limited to 'pyanaconda/flags.py')
-rw-r--r--pyanaconda/flags.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyanaconda/flags.py b/pyanaconda/flags.py
index fdbd504f1..7fb3a780a 100644
--- a/pyanaconda/flags.py
+++ b/pyanaconda/flags.py
@@ -67,6 +67,7 @@ class Flags(object):
self.noverifyssl = False
self.imageInstall = False
self.automatedInstall = False
+ self.dirInstall = False
# for non-physical consoles like some ppc and sgi altix,
# we need to preserve the console device and not try to
# do things like bogl on them. this preserves what that
@@ -190,6 +191,10 @@ def can_touch_runtime_system(msg):
log.info("Not doing '%s' in image installation" % msg)
return False
+ if flags.dirInstall:
+ log.info("Not doing '%s' in directory installation" % msg)
+ return False
+
if flags.testing:
log.info("Not doing '%s', because we are just testing" % msg)
return False