Unify fastboot and heimdall partition variables
!1741 (merged) allows setting the kernel and rootfs partitions for fastboot in the deviceinfo. When it is merged, we will have these variables:
- flash_heimdall_partition_kernel (default: KERNEL)
- flash_heimdall_partition_initfs (default: RECOVERY)
- flash_heimdall_partition_system (default: SYSTEM)
- flash_fastboot_partition_kernel (new; default: boot)
- flash_fastboot_partition_system (new; default: system)
I would suggest we merge them, and also rename system to rootfs, to follow #1354 (closed). Then we would have:
- flash_partition_kernel (default: boot)
- flash_partition_rootfs (default: system)
- flash_partition_initfs (default: none -- this is only used by heimdall so far, but has a generic name now in case we need it elsewhere)
TODO:
-
wait until !1741 (merged) is merged -
create a new MR for pmaports (each change in an own commit): - adjust all existing device-* aports, rename the variables where set, add the variables where the defaults were different from the new defaults (so all heimdall devices need this now) (I'd suggest to adjust the device aports with a script)
- adjust
main/postmarketos-android-recovery-installer
- bump pmaports.cfg version
-
create a MR for pmbootstrap that does the following (each change in an own commit): - use the new variables in
pmb/flasher/variables.py
,pmb/config/__init__.py
- adjust the device aportgen code, to add the device
- add checks in the deviceinfo parser, that tells the user to use the new variables (pmb/parse/deviceinfo.py)
- bump required pmaports version
- use the new variables in
-
merge everything, make pmbootstrap release, bump required pmbootstrap version in pmaports.cfg
Edited by Daniele Debernardi