]> code.ossystems Code Review - openembedded-core.git/commit
kernel-grub.bbclass: add a method to install/update for bzImage
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 18 Oct 2013 02:45:35 +0000 (10:45 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Oct 2013 14:53:24 +0000 (15:53 +0100)
commit8d872e7712a62fa4313a1114a92907c29beffa2e
treeb812692eb8726b13d65d0461cd31fda526c3b00c
parent15ba35aebd7550e53e9f2f35de6b709937dbb55c
kernel-grub.bbclass: add a method to install/update for bzImage

While installing a rpm to update kernel on a deployed target, it will update
the boot area and the boot menu with the kernel as the priority but allow
you to fall back to the original kernel as well.

- In kernel-image's preinstall scriptlet, it backs up original kernel to avoid
  probable confliction with the new one.
- In kernel-image's postinstall scriptlet, it modify grub's config file to
  updates the new kernel as the boot priority.

[YOCTO #4104]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel-grub.bbclass [new file with mode: 0644]