def setDefaultPartitioning(self, storage): autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, size=1024, maxSize=50*1024, grow=True, btr=True, lv=True, thin=True, encrypted=True), PartSpec(mountpoint="/home", fstype=storage.defaultFSType, size=500, grow=True, requiredSpace=50*1024, btr=True, lv=True, thin=True, encrypted=True)] bootreqs = platform.setDefaultPartitioning() if bootreqs: autorequests.extend(bootreqs) disk_space = getAvailableDiskSpace(storage) swp = swap.swapSuggestion(disk_space=disk_space) autorequests.append(PartSpec(fstype="swap", size=swp, grow=False, lv=True, encrypted=True)) for autoreq in autorequests: if autoreq.fstype is None: if autoreq.mountpoint == "/boot": autoreq.fstype = storage.defaultBootFSType else: autoreq.fstype = storage.defaultFSType storage.autoPartitionRequests = autorequests
def setDefaultPartitioning(self, storage): autorequests = [ PartSpec(mountpoint="/", fstype=storage.defaultFSType, size=Size("1GiB"), maxSize=Size("3GiB"), grow=True, lv=True) ] bootreqs = platform.setDefaultPartitioning() if bootreqs: autorequests.extend(bootreqs) disk_space = getAvailableDiskSpace(storage) swp = swap.swapSuggestion(disk_space=disk_space) autorequests.append( PartSpec(fstype="swap", size=swp, grow=False, lv=True, encrypted=True)) for autoreq in autorequests: if autoreq.fstype is None: if autoreq.mountpoint == "/boot": autoreq.fstype = storage.defaultBootFSType autoreq.size = Size("300MiB") else: autoreq.fstype = storage.defaultFSType storage.autoPartitionRequests = autorequests
def setDefaultPartitioning(self, storage): # nkwin7 add begin # keywords: default partitioning; defaultFS; autopart type; add combo; delete refresh button # reset default partitioning. # nkwin7 need not /home partition #autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, # size=1024, maxSize=50*1024, grow=True, # btr=True, lv=True, encrypted=True), # PartSpec(mountpoint="/home", fstype=storage.defaultFSType, # size=500, grow=True, requiredSpace=50*1024, # btr=True, lv=True, encrypted=True)] autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, size=1024, grow=True, btr=True, lv=True, encrypted=True)] # nkwin7 end bootreqs = platform.setDefaultPartitioning() if bootreqs: autorequests.extend(bootreqs) swp = swap.swapSuggestion() autorequests.append(PartSpec(fstype="swap", size=swp, grow=False, lv=True, encrypted=True)) for autoreq in autorequests: if autoreq.fstype is None: if autoreq.mountpoint == "/boot": autoreq.fstype = storage.defaultBootFSType else: autoreq.fstype = storage.defaultFSType storage.autoPartitionRequests = autorequests
def setDefaultPartitioning(self, storage): # 3GB is obviously arbitrary, but we have to pick some default. autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, size=Size("1GiB"), maxSize=Size("3GiB"), grow=True, lv=True)] bootreqs = platform.setDefaultPartitioning() if bootreqs: autorequests.extend(bootreqs) disk_space = getAvailableDiskSpace(storage) swp = swapSuggestion(disk_space=disk_space) autorequests.append(PartSpec(fstype="swap", size=swp, grow=False, lv=True, encrypted=True)) for autoreq in autorequests: if autoreq.fstype is None: if autoreq.mountpoint == "/boot": autoreq.fstype = storage.defaultBootFSType autoreq.size = Size("300MiB") else: autoreq.fstype = storage.defaultFSType storage.autoPartitionRequests = autorequests