From 2c10ddf068dae9ac33b6113750b897c356a68328 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 6 Jan 2007 14:05:15 +0000 Subject: 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. --- classes/kernel.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') 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 -- cgit v1.2.3