<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4991</bug_id>
          
          <creation_ts>2013-08-07 09:24:29 +0000</creation_ts>
          <short_desc>Invalid symbolic link kernel image in qemu rootfs</short_desc>
          <delta_ts>2013-09-18 15:19:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>Qi.Chen</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35455</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-07 09:24:29 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130731-1/machines/qemu/

Git rev: master/9de0ad47462c13ac4a2d73e12e92be6c1b4e0415

For qemux86, qemux86-64, and qemuarm images, The kernel image symbolic link file is invalid in /boot directory. 

#################
root@qemux86:~# ls -l /boot/
total 206137
-rw-r--r-- 1 root root    370464 Jul 25 06:18 Module.symvers-3.8.13-yocto-standard
-rw-r--r-- 1 root root   2190813 Jul 25 06:18 System.map-3.8.13-yocto-standard
lrwxrwxrwx 1 root root        29 Jul 31 06:53 bzImage -&gt; bzImage-3.8.13-yocto-standard
-rw-r--r-- 1 root root     90781 Jul 25 06:18 config-3.8.13-yocto-standard
-rw-r--r-- 1 root root 207599805 Jul 25 06:18 vmlinux-3.8.13-yocto-standard
root@qemux86:~# 
##################

###################
root@qemux86-64:~# ls -l /boot/
total 142661
-rw-r--r-- 1 root root    348525 Jul 25 08:12 Module.symvers-3.8.13-yocto-standard
-rw-r--r-- 1 root root   2356611 Jul 25 08:12 System.map-3.8.13-yocto-standard
lrwxrwxrwx 1 root root        29 Jul 31 06:43 bzImage -&gt; bzImage-3.8.13-yocto-standard
-rw-r--r-- 1 root root     74221 Jul 25 08:12 config-3.8.13-yocto-standard
-rw-r--r-- 1 root root 142726804 Jul 25 08:12 vmlinux-3.8.13-yocto-standard
root@qemux86-64:~# 
####################

####################
root@qemuarm:~# ls -l /boot/
total 91975
-rw-r--r-- 1 root root   299749 Jul 25 11:17 Module.symvers-3.8.13-yocto-standard
-rw-r--r-- 1 root root  1545345 Jul 25 11:17 System.map-3.8.13-yocto-standard
-rw-r--r-- 1 root root    61075 Jul 25 11:17 config-3.8.13-yocto-standard
-rw-r--r-- 1 root root 91899977 Jul 25 11:17 vmlinux-3.8.13-yocto-standard
lrwxrwxrwx 1 root root       28 Jul 31 06:42 zImage -&gt; zImage-3.8.13-yocto-standard
root@qemuarm:~# 
####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35495</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-08 15:53:11 +0000</bug_when>
    <thetext>Which images specifically? I just built core-image-minimal for qemux86 and the /boot directory in the ext2 image is empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35496</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-08 15:54:51 +0000</bug_when>
    <thetext>bah, apologies, was building poky-tiny on accident.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35552</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-09 17:02:24 +0000</bug_when>
    <thetext>This appears to be due to pkg_postinst_kernel-base making the alternatives link when it&apos;s kernel-image that installs the actual kernel image. Testing a correction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35553</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-09 17:55:11 +0000</bug_when>
    <thetext>Patch submitted to OE-Core</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36886</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-09-18 15:19:38 +0000</bug_when>
    <thetext>commit 7590f6926de6dcee05a5b71ef61b8a09972daac5
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   Fri Aug 9 10:58:42 2013 -0700

    kernel.bbclass: Correct post(inst|rm) package association
    
    Fixes [YOCTO #4991]
    
    The kernel image is installed as part of the kernel-image package, but
    the symlink creation/removal via alternatives is being done in
    pkg_post(inst|rm)_kernel-base.
    
    Move the postinst alternatives logic into the kernel-image functions.
    
    (From OE-Core rev: 35f538b117e3387354d2dab1f22c3de28ab1322b)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>