summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-01-06 14:05:15 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-01-06 14:05:15 +0000
commit2c10ddf068dae9ac33b6113750b897c356a68328 (patch)
tree39f3b232cb40c8f618d28b8812c77b134c378f0b /classes
parentcd50a967b41d1940500768ed355f028dc8147b4a (diff)
kernel.bbclass: Create relative symlinks from "zImage" to actual kernel image in use.
* Make sure update-alternatives created relative symlinks in /boot (or whatever) kernel image directory is used. This is required for tools like LAB (Linux As Bootloader) which may mount rootfs over some other temporary fs tree to get access to kernel to boot. * Closes #1569.
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 13381740a1..9c7ff8a207 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -163,11 +163,11 @@ kernel_do_configure() {
}
pkg_postinst_kernel () {
- update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} ${KERNEL_PRIORITY} || true
+ cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} ${KERNEL_PRIORITY} || true
}
pkg_postrm_kernel () {
- update-alternatives --remove ${KERNEL_IMAGETYPE} /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} || true
+ cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_RELEASE} || true
}
inherit cml1