]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: fix pkg_postinst and pkg_postrm
authorAndrea Adami <andrea.adami@gmail.com>
Thu, 22 Dec 2011 23:46:12 +0000 (00:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Dec 2011 17:33:07 +0000 (17:33 +0000)
* Symptom: kernel symlink in /boot is not created.
* Rename in order to create the expected files:
* /var/lib/opkg/info/kernel-3.1.4.postinst
* /var/lib/opkg/info/kernel-3.1.4.postrm

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 120a524bc3b2b3b8f99710eec8276e06f19e15f4..ec5d65e186f63966b356a893c9d5d62146f159bc 100644 (file)
@@ -223,11 +223,11 @@ do_savedefconfig() {
 do_savedefconfig[nostamp] = "1"
 addtask savedefconfig after do_configure
 
-pkg_postinst_kernel () {
+pkg_postinst_kernel-base () {
        cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 }
 
-pkg_postrm_kernel () {
+pkg_postrm_kernel-base () {
        cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
 }