diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2012-10-12 20:01:16 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-22 14:59:30 +0100 |
commit | b5591d0b49202894a0e864759b20410450714914 (patch) | |
tree | 5a5c24fabd7cb1d59dd3c42cd5ecf9d0e42e7279 /meta/classes/kernel.bbclass | |
parent | 394f284beb6044ff4e339e58696747730e4cf380 (diff) | |
download | poky-b5591d0b49202894a0e864759b20410450714914.tar.gz |
kernel.bbclass: Do not chdir to /boot before running update-alternatives
The symlink from uImage-3... to uImage is not created at image creation
time and not properly update on kernel upgrades. This is fixed by removing
the chdir. The other users of update-alternative do not change the directory
before calling it.
(From OE-Core rev: c77ca9ee901468c93570b5264b226f7d17a41c16)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-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 a47fe93cb7..8e13662382 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -244,11 +244,11 @@ do_savedefconfig[nostamp] = "1" | |||
244 | addtask savedefconfig after do_configure | 244 | addtask savedefconfig after do_configure |
245 | 245 | ||
246 | pkg_postinst_kernel-base () { | 246 | pkg_postinst_kernel-base () { |
247 | cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true | 247 | update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true |
248 | } | 248 | } |
249 | 249 | ||
250 | pkg_postrm_kernel-base () { | 250 | pkg_postrm_kernel-base () { |
251 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true | 251 | update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true |
252 | } | 252 | } |
253 | 253 | ||
254 | inherit cml1 | 254 | inherit cml1 |