pmbootstrap install: support size_reserve (MR 1946)

Create an empty partition between boot and root. This will be used by
the on-device installer, as explained in detail here:
https://wiki.postmarketos.org/wiki/On-device_installer
This commit is contained in:
Oliver Smith 2020-06-06 19:05:11 +02:00 committed by Bart Ribbers
parent 5fbc95c3c2
commit a97ec615ad
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
5 changed files with 57 additions and 26 deletions

View file

@ -137,8 +137,9 @@ def chroot(args):
if args.install_blockdev:
size_boot = 128 # 128 MiB
size_root = 4096 # 4 GiB
size_reserve = 2048 # 2 GiB
pmb.install.blockdevice.create_and_mount_image(args, size_boot,
size_root)
size_root, size_reserve)
# Run the command as user/root
if args.user: