forked from Mirror/pmbootstrap
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:
parent
63fc2b621a
commit
2fc0794e30
4 changed files with 15 additions and 15 deletions
|
@ -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)")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue