From: Holger Hans Peter Freyther Date: Fri, 12 Oct 2012 18:01:16 +0000 (+0200) Subject: kernel.bbclass: Do not chdir to /boot before running update-alternatives X-Git-Tag: rev_ivi_2015_02_04~15114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a9b5516963adfb1071abee94b2a72e5cb033d99;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index a47fe93..8e13662 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -244,11 +244,11 @@ do_savedefconfig[nostamp] = "1" addtask savedefconfig after do_configure pkg_postinst_kernel-base () { - cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true + update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true } pkg_postrm_kernel-base () { - cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true + update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true } inherit cml1