diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2011-12-23 00:46:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-24 10:05:46 +0000 |
commit | f9b683cb143b821833053355fdd2dbbd72783c11 (patch) | |
tree | 3c30ea9ba88086083f0beb2c51eebf6a18527dd4 /meta | |
parent | 9a3a4cf849ba55a151721622f731c5ae9117bcf2 (diff) | |
download | poky-f9b683cb143b821833053355fdd2dbbd72783c11.tar.gz |
kernel.bbclass: fix pkg_postinst and pkg_postrm
* 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
(From OE-Core rev: e9cc42bd7c866380d956233bdf8e719b25fdf0a7)
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 120a524bc3..ec5d65e186 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -223,11 +223,11 @@ do_savedefconfig() { | |||
223 | do_savedefconfig[nostamp] = "1" | 223 | do_savedefconfig[nostamp] = "1" |
224 | addtask savedefconfig after do_configure | 224 | addtask savedefconfig after do_configure |
225 | 225 | ||
226 | pkg_postinst_kernel () { | 226 | pkg_postinst_kernel-base () { |
227 | cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true | 227 | cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true |
228 | } | 228 | } |
229 | 229 | ||
230 | pkg_postrm_kernel () { | 230 | pkg_postrm_kernel-base () { |
231 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true | 231 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true |
232 | } | 232 | } |
233 | 233 | ||