Fixed
Created: May 31, 2017
Updated: Dec 9, 2019
Resolved Date: Jun 19, 2017
Found In Version: 6.0.0.17
Fix Version: 6.0.0.34
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config
When building on a RH 6.8 host the following error is seen:
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-core-buildessential
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-core-nfs
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-base
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-base
| WARNING: The license listed MIT was not in the licenses collected for packagegroup-core-boot
| Checking for /mnt/local_builds/xxxxxx/32b_t170522/dhlp/layers/local/conf/image_final/fs_final*.sh
| /usr/bin/rpm exists!
| Checking for /mnt/local_builds/xxxxxx/32b_t170522/dhlp/layers/local/conf/image_final/changelist.xml
| sed: warning: failed to get security context of /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/etc/ssh/sshd_config: Operation not supportedsed: warning: failed to get security context of /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/etc/ssh/sshd_config: Operation not supportedsed: warning: failed to get security context of /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/etc/fstab: Operation not supportedsed: warning: failed to get security context of /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/etc/default/rcS: Operation not supportedtouch: cannot touch `/var/log/lastlog': Permission denied
| /sbin/restorecon: lstat(/var/volatile) failed: No such file or directory
| /sbin/restorecon get context on /var/lib failed: 'Operation not supported'
| /sbin/restorecon: lstat(/run) failed: No such file or directory
| WARNING: /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/temp/do_rootfs/run.do_rootfs.28489:1 exit 255 from
| /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/etc/init.d/populate-volatile.sh
| ERROR: Function failed: do_rootfs (log file is located at /mnt/local_builds/xxxxxx/32b_t170522/dhlp/bitbake_build/tmp/work/intel_x86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/temp/do_rootfs/log.do_rootfs.28489)
NOTE: recipe wrlinux-image-glibc-std-1.0-r5: task do_rootfs: Failed
ERROR: Task 7 (/mnt/local_builds/xxxxxx/32b_t170522/dhlp/layers/local/recipes-img/images/wrlinux-image-glibc-std.bb, do_rootfs) failed with exit code '1'
NOTE: recipe grub-efi-2.00-r2.fix0: task do_package_write_rpm: Succeeded
NOTE: Tasks Summary: Attempted 12088 tasks of which 514 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/mnt/local_builds/xxxxxx/32b_t170522/dhlp/layers/local/recipes-img/images/wrlinux-image-glibc-std.bb, do_rootfs
Summary: There were 457 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make[2]: Leaving directory `/mnt/local_builds/xxxxxx/32b_t170522/dhlp'
The same project, using the same WRL installation, builds fine on 6.2.
This seems to be a problem trying to delete files which don't already exist. The following fixed the issue for the customer.
In the following file
recipes-core/initscripts/initscripts_1.0.bbappend
do_install_append () {
cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
touch /var/log/lastlog
test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run \
/etc/resolv.conf /etc/adjtime
EOF
sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \
${D}${sysconfdir}/init.d/checkroot.sh
}
Instead of the –RF it should say –iRF to ignore files which do not exist.