partition_cgpt: use pmb.chroot.apk.install

Be consistent with the rest of the pmbootstrap codebase and install
packages through this function.

Reviewed-by: Clayton Craft <clayton@craftyguy.net>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230301204311.4456-1-ollieparanoid@postmarketos.org%3E
This commit is contained in:
Oliver Smith 2023-03-01 21:43:11 +01:00
parent bf820f442d
commit a26e203f53
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def partition_cgpt(args, layout, size_boot, size_reserve):
:param size_reserve: empty partition between root and boot in MiB (pma#463)
"""
pmb.chroot.root(args, ["apk", "add", "cgpt"])
pmb.chroot.apk.install(args, ["cgpt"], build=False)
cgpt = {
'kpart_start': args.deviceinfo["cgpt_kpart_start"],