ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] [JT] LFS - построение системы , chroot
@ 2003-10-30 11:13 Alex
  2003-10-30 17:32 ` [Comm] [JT] LFS - построение системы, chroot Евгений Косенко
  2003-10-31  4:21 ` [Comm] [JT] LFS - построение системы , chroot Максим Ярушин
  0 siblings, 2 replies; 4+ messages in thread
From: Alex @ 2003-10-30 11:13 UTC (permalink / raw)
  To: community

есть MDK 9.1...

решил повозиться с системой, самый лучший спооб разобраться - построить 
руками.. для этого есть LFS

если есть тут такие же безумцы, как я - отзовитесь )))

итак:
согласно книге (скачанной с сайта):

когда в mnt/lfs/static статически собраны все необходимые файлы, делаем

chroot $LFS /static/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' 
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin /static/bin/bash --login

и, мля, получаем:
chroot: /static/bin/env: No such file or directory

пытаемся поставить вопрос по - другому:

[root@Exciter alex]# chroot $LFS /static/bin/bash --login
bash-2.05a# HOME=/root
bash-2.05a# TERM=$TERM
bash-2.05a# PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin
bash-2.05a# ls
bash: /static/bin/ls: No such file or directory
bash-2.05a# PS1='\u:\w\$ '
I have no name!:/# ls
bash: /static/bin/ls: No such file or directory
I have no name!:/# /static/bin/ls
bash: /static/bin/ls: No such file or directory
I have no name!:/#

то есть, баш команду видит, но не выполняет ее... в то время, как внутренние 
команды выполняются:

I have no name!:/# help
GNU bash, version 2.05a.0(3)-release (i686-pc-linux-gnu)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.

A star (*) next to a name means that the command is disabled.

 %[DIGITS | WORD] [&]               . filename
 :                                  [ arg... ]
 alias [-p] [name[=value] ... ]     bg [job_spec]
 bind [-lpvsPVS] [-m keymap] [-f fi break [n]

== покусано ==

 unset [-f] [-v] [name ...]         until COMMANDS; do COMMANDS; done
 variables - Some variable names an wait [n]
 while COMMANDS; do COMMANDS; done  { COMMANDS ; }
I have no name!:/#

кто что скажет?

-- 

Alex
== In food we trust == 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-31  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 11:13 [Comm] [JT] LFS - построение системы , chroot Alex
2003-10-30 17:32 ` [Comm] [JT] LFS - построение системы, chroot Евгений Косенко
2003-10-31  8:13   ` Alex
2003-10-31  4:21 ` [Comm] [JT] LFS - построение системы , chroot Максим Ярушин

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git