Skip to content

Commit

Permalink
debug statments
Browse files Browse the repository at this point in the history
Trying to find where #50 is occuring
  • Loading branch information
Batcastle committed Jan 16, 2022
1 parent 3f64dd2 commit c84d516
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/share/system-installer/auto_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,17 @@ def partition(root, efi, home, raid_array):
# If home == "MAKE", we KNOW there are no partitons because we made a
# new partition table
if size >= gb_to_bytes(config["mdswh"]):
common.eprint("Getting root partition size")
root_end = int((size * 0.35) / (1000 ** 2))
else:
root_end = get_min_root_size()
if (efi and (part1 is None)):
common.eprint("Making home part")
part1 = __make_efi__(device)
part2 = __make_root__(device, end=root_end)
part3 = __make_home__(device, new_start=root_end)
elif part1 is None:
common.eprint("Making home part")
part1 = __make_root__(device, start="0%", end=root_end)
__make_root_boot__(device)
part2 = __make_home__(device, new_start=root_end)
Expand Down

0 comments on commit c84d516

Please sign in to comment.