Wind River Support Network

HomeDefectsLIN6-3348
Not to be fixed

LIN6-3348 : [Feature Testing][networking]: Error while extracting rootfs tarballs(into a usb disk or sdcard for the targets system) on wrlinux-5.0.1.4 lx07

Created: Jun 5, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN5-4161, LIN6-2793
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Networking

Description

Problem Description
======================
Error while  extracting rootfs tarballs(into a usb disk or sdcard for the targets system) on wrlinux-5.0.1.4 lx07

Expected Behavior
======================
it is fixed.

Observed Behavior
======================
# tar tjvf /xilinx-zynq-glibc-cgl-cgl-dist.tar.bz2 | \
         grep "/etc/logcheck/$"
drwxr-x--- root/logcheck     0 2013-05-29 06:03 ./etc/logcheck/

====== extract with default options
# tar xjvf /xilinx-zynq-glibc-cgl-cgl-dist.tar.bz2 -C /target/

# cat /etc/group |sed -n '/^logcheck/p'
logcheck:x:986:
# cat /target/etc/group |sed -n '/^logcheck/,+2p'
logcheck:x:987:
ntop:x:986:

# ls -nd /target/etc/logcheck/
drwxr-x---. 9 0 986 4096 Jun  5 04:34 etc/logcheck/
                 ^ ** Wrong, group 986 on target is ntop

====== extract with --numeric-owner
# tar xjvf /xilinx-zynq-glibc-cgl-cgl-dist.tar.bz2 -C /target/ --numeric-owner

# ls -nd /target/etc/logcheck/
drwxr-x---. 9 0 987 4096 Jun  5 04:34 etc/logcheck/
                 ^ ** Right, group is still 987

Steps to Reproduce

1 configure a project
/lpg-build/cdc/sustaining/WR5014LX07/wrlinux-5/wrlinux/configure --enable-board=cav-octeon2 --enable-kernel=cgl --enable-rootfs=glibc-cgl --enable-parallel-pkgbuilds=16 --enable-jobs=8 --with-layer=wr-features,/wr-testing/cgl,/wr-testing/ltp,/wr-testing/networking --with-template=feature/cut,feature/analysis,feature/debug,feature/kexec --enable-build=profiling
2. make fs
3. cp the rootfs onto the target disk, tar jxvf rootfs.tar.bz2, start the target with the kernel and rootfs
4. tar xjvf /xilinx-zynq-glibc-cgl-cgl-dist.tar.bz2 -C /target/; cat /etc/group |sed -n '/^logcheck/p'; cat /target/etc/group |sed -n '/^logcheck/,+2p'

Other Downloads


Live chat
Online