[master][PATCH] Enable LVM Thin Provisioning in text mode
Vratislav Podzimek
vpodzime at redhat.com
Mon May 26 07:10:59 UTC 2014
It seems there is no reason for not allowing users choose LVM Thin Provisioning
autopart scheme in text mode.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/tui/spokes/storage.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 9cd66f1..55ab2c9 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -28,7 +28,7 @@ from pyanaconda.ui.tui.spokes import NormalTUISpoke
from pyanaconda.ui.tui.simpleline import TextWidget, CheckboxWidget
from pyanaconda.ui.tui.tuiobject import YesNoDialog
-from pykickstart.constants import AUTOPART_TYPE_LVM, AUTOPART_TYPE_BTRFS, AUTOPART_TYPE_PLAIN
+from pykickstart.constants import AUTOPART_TYPE_LVM, AUTOPART_TYPE_BTRFS, AUTOPART_TYPE_PLAIN, AUTOPART_TYPE_LVM_THINP
from blivet import storageInitialize, arch
from blivet.size import Size
from blivet.errors import StorageError, DasdFormatError
@@ -508,7 +508,9 @@ class PartitionSchemeSpoke(NormalTUISpoke):
def __init__(self, app, data, storage, payload, instclass):
NormalTUISpoke.__init__(self, app, data, storage, payload, instclass)
self.partschemes = OrderedDict([("Standard Partition", AUTOPART_TYPE_PLAIN),
- ("LVM", AUTOPART_TYPE_LVM), ("BTRFS", AUTOPART_TYPE_BTRFS)])
+ ("LVM", AUTOPART_TYPE_LVM),
+ ("LVM Thin Provisioning", AUTOPART_TYPE_LVM_THINP),
+ ("BTRFS", AUTOPART_TYPE_BTRFS)])
@property
def indirect(self):
--
1.9.3
More information about the anaconda-patches
mailing list