summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui
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/ui
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/ui')
-rw-r--r--pyanaconda/ui/gui/spokes/storage.py4
-rw-r--r--pyanaconda/ui/tui/spokes/storage.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index a80ee0044..a3d31ff27 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -450,6 +450,10 @@ class StorageSpoke(NormalSpoke, StorageChecker):
return self._ready
@property
+ def showable(self):
+ return not flags.dirInstall
+
+ @property
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 2cfff2735..80e309400 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -120,6 +120,10 @@ class StorageSpoke(NormalTUISpoke):
return True
@property
+ def showable(self):
+ return not flags.dirInstall
+
+ @property
def status(self):
""" A short string describing the current status of storage setup. """
msg = _("No disks selected")