Bug 6826

Summary: wic: invoke 'wic create directdisk -e core-image-minimal' failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongxu Jia <hongxu.jia>
Component: deploymentAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liezhi.yang, mark.hatle, sgw
Version: 1.8   
Target Milestone: 1.8 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Hongxu Jia 2014-10-13 10:31:26 UTC
1. build core-image-minimal
$ bitbake core-image-minimal

2. run wic failed
$ wic create directdisk -e core-image-minimal
...
|Creating image(s)...
|Error: exec_cmd: install -m 444 /home/jiahongxu/yocto/
build-20141010-yocto/tmp/deploy/images/qemux86-64/syslinux/
ldlinux.sys /var/tmp/wic/build/hdd/boot/ldlinux.sys
returned '1' instead of 0
...
Comment 1 Hongxu Jia 2014-10-13 10:43:12 UTC
Add checking for the existance of syslinux to fix this issue.
If syslinux didn't exist in anywhere, prompt user to build it.

$ wic create directdisk -e core-image-minimal
...
Creating image(s)...

Error: Please build syslinux first
...
Comment 2 Hongxu Jia 2014-10-20 02:40:53 UTC
Merged into master:

commit 9c218a319e006b8edf2f1ef9eada9b5611b85e12
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Mon Oct 13 18:46:34 2014 +0800

    wic/bootimg-pcbios.py: checking the existance of syslinux
    
    While syslinux not existed in $bootimg_dir, there was a error:
    
    $ wic create directdisk -e core-image-minimal
    ...
    |Creating image(s)...
    |Error: exec_cmd: install -m 444 /home/jiahongxu/yocto/
    build-20141010-yocto/tmp/deploy/images/qemux86-64/syslinux/
    ldlinux.sys /var/tmp/wic/build/hdd/boot/ldlinux.sys
    returned '1' instead of 0
    ...
    
    Add checking for the existance of syslinux to fix this issue.
    If syslinux didn't exist in anywhere, prompt user to build it.
    
    [YOCTO #6826]
    
    (From OE-Core rev: c2d4364d9fbbda64598f0a3eb0b0890932bb7742)