You are not logged in.

#1 2006-04-16 01:15:47

user
Member
Registered: 2006-03-29
Posts: 465

minimal chroot

Prenote: this is ongoing-personal(study) post, if it done(time unlimited, no dead line), post will be added.
yes, there is many similar or same tools, but i want my own easy-dumb style tool. the tool will be more mature later.
Basically i try to understand lfs chroot environment, error and mistake are my friend.


and you will see how this could be done.
no help post needed, but welcome.

Hi,

I am trying to make simple minimal chroot enviroment, and investigate the possibility only /bin and home/<user>/<?>/bin.
when it done, and i am using this to more newer experimental linux e.g reiser4+linux+gobolinux , +only everything under one or two dir ,+framebuffer+xgl etc..


SMALL Subject: gcc-4.1.0 (this could be wrong start point)

[done] gcc-4.1.0 build refered lfs gcc build
[time] small time wasted, this gcc build be done by using another more powerful personal compiler farm.

echo $PATH
/home/user/gcc-4.1.0/usr/bin:/home/user/jdk1.6.0/bin:/home/user/ant/bin:/home/user/ocaml/bin:/home/user/ocaml/sbin:/home/user/garnome/bin:/home/user/jdk1.6.0/bin:/home/user/ant/bin:/home/user/ocaml/bin:/home/user/ocaml/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin

echo $LD_LIBRARY_PATH
/home/user/gcc-4.1.0/usr/lib:/home/user/garnome/lib:

cc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 4.1.0

file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped

./a.out
hello gcc-4.1.0 world

PS: oops bug! gcc prefix must be "/" because it is the purpose of mine, may work or not.


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#2 2006-04-16 16:12:37

user
Member
Registered: 2006-03-29
Posts: 465

Re: minimal chroot

[pending] gcc-4.1.0 in "/", so check diy-linux temp-chroot kit

http://www.diy-linux.org/x86-reference-build/


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

Board footer

Powered by FluxBB