[oe-commits] org.oe.dev kernel.bbclass: Create relative symlinks from "zImage" to actual kernel image in use.

pfalcon commit openembedded-commits at lists.openembedded.org
Sat Jan 6 14:12:29 UTC 2007


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.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: c048c58db6ff738c605eaf3189b12cc54cf25756
ViewMTN: http://monotone.openembedded.org/revision.psp?id=c048c58db6ff738c605eaf3189b12cc54cf25756
Files:
1
classes/kernel.bbclass
Diffs:

#
# mt diff -rfbff716710a0fbeca3a08e0e2b2401a4b5bbaec6 -rc048c58db6ff738c605eaf3189b12cc54cf25756
#
# 
# 
# patch "classes/kernel.bbclass"
#  from [7642bfc6a9c514550ff8e1c5330e8dfa06abfb07]
#    to [9dbdecbe46f480d4635a05d4a5680d5e4fb35aeb]
# 
============================================================
--- classes/kernel.bbclass	7642bfc6a9c514550ff8e1c5330e8dfa06abfb07
+++ classes/kernel.bbclass	9dbdecbe46f480d4635a05d4a5680d5e4fb35aeb
@@ -163,11 +163,11 @@ pkg_postinst_kernel () {
 }
 
 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






More information about the Openembedded-commits mailing list