You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rootfs: run update-grub after all package installs
Problem
- update-grub was executed immediately after the direct kernel
`dpkg -i`, before overlay apt packages and local-debs repo packages
were installed.
- When the effective kernel came from overlay manifest apt sources,
GRUB generation could observe stale kernel state.
Implementation
- Move post-bootloader actions to after all install sources complete:
1. firmware `dpkg -i` (optional)
2. kernel `dpkg -i` (optional)
3. overlay manifest apt packages
4. local-debs apt repository packages
5. update-grub
6. grub cleanup/normalization
7. package manifest capture/delta generation
- Keep the explicit update-grub invocation in the chroot (do not rely
on hook execution gated by systemd runtime presence).
Result
- Bootloader state reflects final package-set convergence rather than
an intermediate state.
- The kernel delivery path (direct deb vs apt overlay vs local deb
repo) no longer changes GRUB correctness.
Scope
- Install-order and bootloader-timing correction only; the DTB policy
cleanup remains separate.
Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
0 commit comments