Wind River Support Network

HomeDefectsLIN6-1603
Fixed

LIN6-1603 : "grep" command cannot be found in "zgrep" script on KVM host

Created: Nov 24, 2013    Updated: Dec 3, 2018
Resolved Date: Dec 18, 2013
Found In Version: 6.0
Fix Version: 6.0.0.2
Severity: Standard
Applicable for: Wind River Linux 6
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