pmb/install: have size_boot, size_root in MiB (MR 1946)

Prepare for a future patch, that adds reserved space in MiB, by changing
size_boot and size_root from bytes to MB everywhere. This is what we need
most of the time and allows to drop some /1024**2 statements.
This commit is contained in:
Oliver Smith 2020-06-06 18:39:21 +02:00 committed by Bart Ribbers
parent 63fc2b621a
commit 2fc0794e30
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
4 changed files with 15 additions and 15 deletions

View file

@ -45,10 +45,10 @@ def partition(args, size_boot):
"""
Partition /dev/install and create /dev/install{p1,p2}
size_boot: size of the boot partition in bytes.
size_boot: size of the boot partition in MB
"""
# Convert to MB and print info
mb_boot = str(round(size_boot / 1024 / 1024)) + "M"
mb_boot = str(round(size_boot)) + "M"
logging.info("(native) partition /dev/install (boot: " + mb_boot +
", root: the rest)")