Bug 7912

Summary: Improvement request for Wic error message
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Igor Stoppa <igor.stoppa>
Component: devtools / tool chainAssignee: Ed Bartosh <eduard.bartosh>
Status: VERIFIED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium CC: bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher
Version: 1.8.1   
Target Milestone: 1.9   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Igor Stoppa 2015-06-19 13:19:32 UTC
Preconditions/Environment
-------------------------
I'm trying to use wic with a custom kickstart file.

Triggering Action/Cause
-----------------------
Either I have a bug in the kickstart file or I'm missing some parameter in the invocation of wic from command line.

Expectation
-----------
If wic detects that there is a formal error in the data i provided, it should tell me what error it has detected.

Actual Result
-------------
I get the generic error message:

"Build artifacts not completely specified, exiting.
  (Use 'wic -e' or 'wic -r -b -k -n' to specify artifacts)"

Which doesn't give me any clue of what is wrong.

Reproducibility
---------------
100%

command line:
eval ${PSEUDO} wic create mk-iot-os-image.wks -o ${DEPLOY_DIR_IMAGE} -r ${IMAGE_ROOTFS} -D

wkf file:
part / --source rootfs  --fstype=ext4 --align 1024
Comment 1 Ed Bartosh 2015-06-29 19:19:39 UTC
Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2015-June/106674.html
Comment 3 Daniel Istrate 2015-09-21 09:24:11 UTC
Verified on master: 7b86c771c80d0759c2ca0e57c46c4c966f89c49e


[daniel@fedora-ws poky-build]$ eval ${PSEUDO} wic create mk-iot-os-image.wks -o ${DEPLOY_DIR_IMAGE} -r ${IMAGE_ROOTFS} -D
The following build artifacts are not specified:
  rootfs-dir, bootimg-dir, kernel-dir, native-sysroot
[daniel@fedora-ws poky-build]$