Fixed
Created: Oct 6, 2017
Updated: Dec 3, 2018
Resolved Date: Nov 27, 2017
Found In Version: 6.0
Fix Version: 6.0.0.36
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
Please, check the following:
============================================
Found under: ./layers/oe-core/meta/recipes-extended/iptables/iptables/iptables.init
OLD ============================================
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
&& NEW_MODUTILS=1 \
|| NEW_MODUTILS=0
NEW ============================================
Suggested change (a) OR (b)
(a)
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
&& NEW_MODUTILS=0 \
|| NEW_MODUTILS=1
(b)
/sbin/modprobe --version 2>&1 | grep -q kmod \
&& NEW_MODUTILS=1 \
|| NEW_MODUTILS=0
============================================
HOST # configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_std --enable-bootimage=iso --enable-build=production --enable-jobs=38 --enable-parallel-pkgbuilds=38 --enable-reconfig --with-sstate-dir=../sstate --with-layer=meta-selinux,examples/fs-final --enable-rm-oldimgs=yes --enable-internet-download=yes --with-template=feature/initramfs,feature/example-fs-final --enable-doc-pages=none --with-package=perf --with-rcpl-version=0032
root@qemu0:~# /sbin/modprobe --version
kmod version 14
root@qemu0:~# lsmod
Module Size Used by
processor 27279 0
ata_generic 3910 0
============================================
kmod => NEW_MODUTILS=1 => AWK (iptables.init line 78)
[ $NEW_MODUTILS = 1 ] \
&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)
============================================