Wind River Support Network

HomeDefectsLIN7-1929
Fixed

LIN7-1929 : "grep" command cannot be found in "zgrep" script on KVM host

Created: Nov 21, 2014    Updated: Sep 8, 2018
Resolved Date: Feb 12, 2015
Found In Version: 7.0
Fix Version: 7.0.0.3
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

root@WRL6:/# zgrep -q CONFIG_X86_32=y /proc/config.gz                          
/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory             
root@WRL6:/# which grep                                                        
/bin/grep

Workaround

Create a link (/usr/bin/grep) to /bin/grep for the "zgrep" command

Steps to Reproduce

1. Build KVM host kernel and rootfs

/wrlinux60/dvd_install/lx25_13fa/wrlinux-6/wrlinux/configure \
       --enable-board=intel-x86-64 \
       --enable-kernel=standard \
       --enable-rootfs=glibc_std \
       --with-template=feature/kvm \
       --with-layer=/buildarea2/lliu2/wr-testing/virtualization \
       --enable-jobs=18 \
       --enable-parallel-pkgbuilds=18 

make fs

2. Load images to the target (barcode:20990)

3. Run the command of "zgrep" 

Other Downloads


Live chat
Online