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

@ -135,8 +135,8 @@ def chroot(args):
# Install blockdevice
if args.install_blockdev:
size_boot = 128 * 1024 * 1024 # 128 MiB
size_root = 4096 * 1024 * 1024 # 4 GiB
size_boot = 128 # 128 MiB
size_root = 4096 # 4 GiB
pmb.install.blockdevice.create_and_mount_image(args, size_boot,
size_root)