Bug 1210 - some commands run failed on minimal images according to steps on minimal image wiki
Summary: some commands run failed on minimal images according to steps on minimal imag...
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: mpc8315e-rdb ppc
: Medium normal
Target Milestone: 1.1 M4
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard: will be fixed by Aug24/2011
Depends on:
Blocks:
 
Reported: 2011-07-04 22:50 UTC by liang li
Modified: 2011-08-21 22:19 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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