21 |
+ autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, |
+ autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, |
22 |
+ size=Size("5GiB"), |
+ size=Size("5GiB"), |
23 |
+ grow=True, |
+ grow=True, |
24 |
+ lv=True, thin=False)] |
+ lv=False, thin=False)] |
25 |
+ |
+ |
26 |
+ bootreqs = platform.setDefaultPartitioning() |
+ bootreqs = platform.setDefaultPartitioning() |
27 |
+ if bootreqs: |
+ if bootreqs: |
31 |
+ disk_space = getAvailableDiskSpace(storage) |
+ disk_space = getAvailableDiskSpace(storage) |
32 |
+ swp = swap.swapSuggestion(disk_space=disk_space) |
+ swp = swap.swapSuggestion(disk_space=disk_space) |
33 |
+ autorequests.append(PartSpec(fstype="swap", size=swp, grow=False, |
+ autorequests.append(PartSpec(fstype="swap", size=swp, grow=False, |
34 |
+ lv=True, encrypted=True)) |
+ lv=False, encrypted=True)) |
35 |
+ |
+ |
36 |
+ for autoreq in autorequests: |
+ for autoreq in autorequests: |
37 |
+ if autoreq.fstype is None: |
+ if autoreq.fstype is None: |