]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/kernel: Use full path for symlink in update-alternatives.
authorDrew Moseley <drew_moseley@mentor.com>
Thu, 26 Jun 2014 17:01:16 +0000 (13:01 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Jun 2014 08:02:50 +0000 (09:02 +0100)
Use a fully qualified path for the <path> parameter in calls
to update-alternatives.  The chkconfig-alternatives version
requires a full path and without it, the symlink is not
properly created.

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 6ed1cb73c8824590e6163cfd13ab3689f3c99f89..f5d725878f80ea74920daa188f9e9c135a5ddfd4 100644 (file)
@@ -374,7 +374,7 @@ pkg_postinst_kernel-base () {
 }
 
 pkg_postinst_kernel-image () {
-       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_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 }
 
 pkg_postrm_kernel-image () {