Bug 1210

Summary: some commands run failed on minimal images according to steps on minimal image wiki
Product: [Build System, Metadata & Runtime] OE-Core Reporter: liang li <liang.li2>
Component: coreAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kai.kang, liang.li2, liangliang.wang, meta.mr.watcher, meta.watcher, sgw, Xiaofeng.yan, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M4   
Hardware: mpc8315e-rdb   
OS: ppc   
Whiteboard: will be fixed by Aug24/2011
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description liang li 2011-07-04 22:50:13 UTC
some commands run failed according to steps on minimal image wiki:
https://wiki.yoctoproject.org/wiki/Minimal_Image
commands below:
top, df ,fdisk,mount,mpstat,umount,ps
both commands need some file in /proc dir , but /proc dir is empty after boot,so run failed.
commands below:
whoami 
error info:"unknow uid 0".
init 
error info:"must be run as PID 1".
Comment 1 Kai Kang 2011-08-18 19:05:17 UTC
mount /proc /sys when boot the image by apply the patch in
https://wiki.yoctoproject.org/wiki/Minimal_Image#init_script
to busybox to make /proc related commands usable.
Comment 2 Kai Kang 2011-08-18 19:11:10 UTC
And minimal image doesn't provide commands fdisk and init
Comment 3 liang li 2011-08-18 19:17:49 UTC
verify it.
Comment 4 liang li 2011-08-18 19:18:48 UTC
verify it.
Comment 5 Kai Kang 2011-08-18 22:19:30 UTC
Note:

whoami 
error info:"unknow uid 0".

need eglibc NIS support
Comment 6 Kai Kang 2011-08-18 22:22:38 UTC
Sorry, mistake operation
Comment 7 liang li 2011-08-18 22:34:23 UTC
verify.
Comment 8 liang li 2011-08-21 22:19:45 UTC
as minimal image wiki https://wiki.yoctoproject.org/wiki/Minimal_Image been updated,so add verified info below:
git info :
commit edd8e1e8b974eb3f0f9f66c2207aadf43612350b
Author: Scott Rifenbark <scott.m.rifenbark@intel.com>
Date:   Mon Aug 15 08:37:17 2011 -0700

    documentation/adt-manual/adt-command.xml: general edits.
    
    (From yocto-docs rev: 7227ad57257869f2fcb7f85bed8b8b90db4bd65a)
    
    Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
git branch :poky/master