Skip to content

Commit

Permalink
Merge pull request #60 from drauger-os-development/dev
Browse files Browse the repository at this point in the history
fix for issue #50
  • Loading branch information
Batcastle authored Jan 16, 2022
2 parents ddf9ea1 + 2543505 commit d033ac2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: system-installer
Version: 2.1.9
Version: 2.2.0
Maintainer: Thomas Castleman <[email protected]>
Homepage: https://github.com/drauger-os-development/system-installer
Section: admin
Expand Down
2 changes: 1 addition & 1 deletion usr/bin/system-installer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

using namespace std;

str VERSION = "2.1.9";
str VERSION = "2.2.0";
str R = "\033[0;31m";
str G = "\033[0;32m";
str Y = "\033[1;33m";
Expand Down
3 changes: 2 additions & 1 deletion usr/share/system-installer/auto_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ def partition(root, efi, home, raid_array):
except parted._ped.DiskLabelException:
common.eprint("NO PARTITION TABLE EXISTS. MAKING NEW ONE . . .")
disk = parted.freshDisk(device, "gpt")
size = sectors_to_size(device.length, device.sectorSize) * 1000
# sectors_to_size() returns size in MBs, multiply by 1 million to convert to bytes
size = sectors_to_size(device.length, device.sectorSize) * 1000000
if ((home in ("NULL", "null",
None, "MAKE")) and (raid_array["raid_type"] is None)):
disk = clobber_disk(device)
Expand Down

0 comments on commit d033ac2

Please sign in to comment.