anaconda: switch default partitioning scheme to LVM Thin Provisioning
QubesOS/qubes-issues#2412
This commit is contained in:
parent
8873d4b659
commit
0d268f7a27
@ -75,7 +75,7 @@ from pyanaconda import constants, iutil, isys
|
|||||||
from pyanaconda.bootloader import BootLoaderError
|
from pyanaconda.bootloader import BootLoaderError
|
||||||
from pyanaconda.storage_utils import on_disk_storage
|
from pyanaconda.storage_utils import on_disk_storage
|
||||||
|
|
||||||
from pykickstart.constants import CLEARPART_TYPE_NONE, AUTOPART_TYPE_LVM
|
from pykickstart.constants import CLEARPART_TYPE_NONE, AUTOPART_TYPE_LVM, AUTOPART_TYPE_LVM_THINP
|
||||||
from pykickstart.errors import KickstartParseError
|
from pykickstart.errors import KickstartParseError
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@ -553,7 +553,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
|
|||||||
self.autopart = self.data.autopart.autopart
|
self.autopart = self.data.autopart.autopart
|
||||||
self.autoPartType = self.data.autopart.type
|
self.autoPartType = self.data.autopart.type
|
||||||
if self.autoPartType is None:
|
if self.autoPartType is None:
|
||||||
self.autoPartType = AUTOPART_TYPE_LVM
|
self.autoPartType = AUTOPART_TYPE_LVM_THINP
|
||||||
self.encrypted = self.data.autopart.encrypted
|
self.encrypted = self.data.autopart.encrypted
|
||||||
self.passphrase = self.data.autopart.passphrase
|
self.passphrase = self.data.autopart.passphrase
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ from pyanaconda.constants_text import INPUT_PROCESSED
|
|||||||
from pyanaconda.i18n import _, P_, N_, C_
|
from pyanaconda.i18n import _, P_, N_, C_
|
||||||
from pyanaconda.bootloader import BootLoaderError
|
from pyanaconda.bootloader import BootLoaderError
|
||||||
|
|
||||||
from pykickstart.constants import CLEARPART_TYPE_ALL, CLEARPART_TYPE_LINUX, CLEARPART_TYPE_NONE, AUTOPART_TYPE_LVM
|
from pykickstart.constants import CLEARPART_TYPE_ALL, CLEARPART_TYPE_LINUX, CLEARPART_TYPE_NONE, AUTOPART_TYPE_LVM, AUTOPART_TYPE_LVM_THINP
|
||||||
from pykickstart.errors import KickstartParseError
|
from pykickstart.errors import KickstartParseError
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
@ -351,7 +351,7 @@ class StorageSpoke(NormalTUISpoke):
|
|||||||
self.data.clearpart.drives = self.selected_disks[:]
|
self.data.clearpart.drives = self.selected_disks[:]
|
||||||
|
|
||||||
if self.data.autopart.type is None:
|
if self.data.autopart.type is None:
|
||||||
self.data.autopart.type = AUTOPART_TYPE_LVM
|
self.data.autopart.type = AUTOPART_TYPE_LVM_THINP
|
||||||
|
|
||||||
if self.autopart:
|
if self.autopart:
|
||||||
self.clearPartType = CLEARPART_TYPE_ALL
|
self.clearPartType = CLEARPART_TYPE_ALL
|
||||||
|
Loading…
Reference in New Issue
Block a user