pmb/chroot/initfs: change invocation to support the new mkinitfs
This changes pmb to support the new mkinitfs here: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2426
Merge request reports
Activity
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
Recovery zip image code path also needs to be tested, since it gets the FLAVOR passed:
https://wiki.postmarketos.org/wiki/Installation_from_recovery_mode#Create_the_recovery_zip_image
By Oliver Smith on 2021-08-20T01:50:23
- Resolved by Administrator
New pmaports.cfg variable needs to be described in the wiki.
https://wiki.postmarketos.org/wiki/Pmaports.cfg_reference
By Oliver Smith on 2021-08-29T21:08:36
Edited by Administrator
added 9 commits
-
e2aec1cd...468d3137 - 4 commits from branch
master
- 6db8f8dd - pmb/chroot/initfs: change invocation to support the new mkinitfs
- adf8a763 - pmb/helpers/frontend: drop all --flavors args
- 9a82170d - pmb/install: use kernel pkg for device when printing firewall info
- 0a55aa02 - chroot/other/kernel_flavor_installed: support generic kernel name
- 5dff6823 - pmb/config/flashers: use boot.img for flask_kernel image name
By clayton craft on 2021-08-24T21:42:54
Toggle commit list-
e2aec1cd...468d3137 - 4 commits from branch
mentioned in commit postmarketos-android-recovery-installer@31473f90
By clayton craft on 2021-08-25T00:59:13
mentioned in merge request postmarketos-android-recovery-installer!10 (merged)
By clayton craft on 2021-08-25T00:59:46
mentioned in commit postmarketos-android-recovery-installer@fea3c98b
By clayton craft on 2021-08-25T01:12:23
added 6 commits
- 1616029a - pmb/chroot/initfs: change invocation to support the new mkinitfs
- b3161ffc - pmb/helpers/frontend: drop all --flavors args
- 7b136df6 - pmb/install: use kernel pkg for device when printing firewall info
- f4a56b1d - chroot/other/kernel_flavor_installed: support generic kernel name
- 035b31e8 - pmb/config/flashers: add support for single kernel 'flavor'
- ca084761 - pmb/install/recovery: add support for single kernel 'flavor'
By clayton craft on 2021-08-25T02:10:34
Toggle commit list- Resolved by Administrator
- Resolved by Administrator
- Resolved by Administrator
pmbootstrap export also needs to be updated to drop the flavor and support the new behaviour: https://gitlab.postmarketos.org/postmarketos/pmbootstrap/-/blob/master/pmb/export/symlinks.py#L21
By Caleb Connolly on 2021-08-29T16:12:28
added 1 commit
- e614020b - pmb/export/symlinks: add support for a single 'flavor'
By clayton craft on 2021-08-29T19:51:27
- Resolved by Administrator
- Resolved by Administrator
added 4 commits
- c6e3f369 - chroot/other/kernel_flavor_installed: support generic kernel name
- 7be75b53 - pmb/config/flashers: add support for single kernel 'flavor'
- e6930a82 - pmb/install/recovery: add support for single kernel 'flavor'
- 9da0a5c9 - pmb/export/symlinks: add support for a single 'flavor'
By clayton craft on 2021-08-30T03:22:24
Toggle commit list- Resolved by Administrator
marking as 'draft' since there's some breakage in qemu I need to debug/fix, and don't want this to get merged before that is done.
By clayton craft on 2021-09-01T17:13:14
added 10 commits
-
9da0a5c9...9ae2eef0 - 2 commits from branch
master
- f46533a2 - pmb/chroot/initfs: change invocation to support the new mkinitfs
- e3c4f103 - pmb/helpers/frontend: drop all --flavors args
- 4a10bbe6 - pmb/install: use kernel pkg for device when printing firewall info
- df7be7da - chroot/other/kernel_flavor_installed: support generic kernel name
- b8628764 - pmb/config/flashers: add support for single kernel 'flavor'
- 04809a99 - pmb/install/recovery: add support for single kernel 'flavor'
- 2a5bd848 - pmb/export/symlinks: add support for a single 'flavor'
- 5dedf111 - pmb/qemu: add support for single kernel 'flavor'
By clayton craft on 2021-09-01T18:14:03
Toggle commit list-
9da0a5c9...9ae2eef0 - 2 commits from branch
- Resolved by Administrator
I've read this MR, the pmaports MR, the source of boot-deploy and the new postmarketos-mkinitfs. Overall everything looks reasonable, noticed some things but they don't need to block the release; I'll make separate issues for them.
Some additional testing I did:
- ran
pmbootstrap install
on the v21.06 branch (where we will not roll out the new mkinitfs), to make sure that the backwards compat code paths inpmbootstrap
work as expected:- pine64-pinephone -> install runs through, files in /boot look just like on current edge, looks good
- oneplus-enchilada -> install runs through
- nokia-n900 -> install runs through
-
installed this MR + the pmaports MR on my pinephone- building linux-postmarketos-allwinner device-pine64-allwinner postmarketos-mkinitfs
- kernel is still building, so didn't test this yet
- UPDATE: now tested too!
- host built packages as own repo
- install everything, reboot
- building linux-postmarketos-allwinner device-pine64-allwinner postmarketos-mkinitfs
I think this pmbootstrap MR is ready to go, except for two details. But they don't need another review round, I think you can merge it after these are resolved. If somebody else could review this it would be nice, but also it has been open for 3 weeks now and seen a reasonable amount of reviewing and testing.
As discussed, let's merge tomorrow around 17:00 UTC (10 am PDT, 19:00 CEST) :)
TODO before merge:
- announce this mkinitfs change in an edge blog post (I suggest doing this ASAP, so people can be aware a bit ahead of time)
- suffix variable (see other comment)
-
there's still "supported_new_mkinitfs" in the commit diff and commit message of the patch
pmb/chroot/initfs: change invocation to support the new mkinitfs
, it should be "supported_mkinitfs_without_flavors" as it's now everywhere else.
Now regarding the rollout plan: I thought about compatibility of pmaports.git once pmaports!2426 is merged with the latest released pmbootstrap version, and concluded that it will not be possible. All the device and kernel packages now have the suffix dropped, so if using pmaports!2426, we also must use this pmbootstrap MR. This means, we need a pmbootstrap MR and the pmaports MR must depend on it.
Roll out plan:
- take care of TODOs above
- merge pmbootstrap MR (let's do this tomorrow as discussed)
- create pmbootstrap release (note that currently only I and Martijn can update the pypi tarball; if it's not on pypi then wait here until it is and don't merge the pmaports MR yet)
- pmaports MR: resolve open threads (bump pkgrel etc.)
-
pmaports MR: increase
pmbootstrap_min_version
in pmaports.cfg to the newly released version - pmaports MR: add MR ID to commit msgs and merge
- document the new variable in pmaports.cfg
- (fix stuff that breaks)
By Oliver Smith on 2021-09-03T18:08:44
Edited by Administrator- ran
added 8 commits
- 25d5af20 - pmb/chroot/initfs: change invocation to support the new mkinitfs
- de48a70c - pmb/helpers/frontend: drop all --flavors args
- dcdaaa2f - pmb/install: use kernel pkg for device when printing firewall info
- 1bc2c0cb - chroot/other/kernel_flavor_installed: support generic kernel name
- 6f329094 - pmb/config/flashers: add support for single kernel 'flavor'
- ec28dc09 - pmb/install/recovery: add support for single kernel 'flavor'
- 67b8907d - pmb/export/symlinks: add support for a single 'flavor'
- fad1eb93 - pmb/qemu: add support for single kernel 'flavor'
By clayton craft on 2021-09-03T01:18:54
Toggle commit listadded 8 commits
- ca7ac4c7 - pmb/chroot/initfs: change invocation to support the new mkinitfs (MR 2093)
- 1d503073 - pmb/helpers/frontend: drop all --flavors args (MR 2093)
- 184ac91e - pmb/install: use kernel pkg for device when printing firewall info (MR 2093)
- 09794ef8 - chroot/other/kernel_flavor_installed: support generic kernel name (MR 2093)
- 05c9fb78 - pmb/config/flashers: add support for single kernel 'flavor' (MR 2093)
- 91bb6827 - pmb/install/recovery: add support for single kernel 'flavor' (MR 2093)
- 453ce35b - pmb/export/symlinks: add support for a single 'flavor' (MR 2093)
- 45ce639a - pmb/qemu: add support for single kernel 'flavor' (MR 2093)
By Oliver Smith on 2021-09-03T17:15:14
Toggle commit listmentioned in merge request !2112 (merged)
By clayton craft on 2021-09-13T15:32:49
mentioned in commit postmarketos-android-recovery-installer@3af18398
By clayton craft on 2021-10-01T20:23:32