Bug 9092

Summary: ca-certificates-native needs to be added into postinst recipes list
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ming Liu <liu.ming50>
Component: coreAssignee: Ming Liu <ming.liu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ming Liu 2016-02-10 22:12:59 UTC
With Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0+snapshot-20160210"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:3d1932cf71925073caec3bad8724783f998e9c83"
meta-initramfs    
meta-oe           = "master:73854a05565b30a5ca146ac53959c679b27815aa"


With the following steps:
1 Added 2 lines to recipes-core/images/core-image-minimal.bb
IMAGE_FEATURES_append = " read-only-rootfs"
IMAGE_INSTALL_append = " ca-certificates"

2 bitbake core-image-minimal
  bitbake ca-certificates ca-certificates-native -c clean
  bitbake core-image-minimal -c cleansstate
  bitbake core-image-minimal -c rootfs


Then I got the following error:

ERROR: The following packages could not be configured offline and rootfs is read-only: ['100-ca-certificates']
ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/mliu3/Desktop/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.26464
ERROR: Task 6 (/home/mliu3/Desktop/yocto/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
Comment 2 Ming Liu 2016-02-16 21:35:47 UTC
As of a6426479f6348524a904ba28c16c1e3c8793cb08 patch merged into master.