From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1P9zJJ-0007nB-5e for garchives@archives.gentoo.org; Sun, 24 Oct 2010 12:04:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B47DE006E; Sun, 24 Oct 2010 12:04:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E0BECE006E for ; Sun, 24 Oct 2010 12:04:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 818F71B401E for ; Sun, 24 Oct 2010 12:04:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: 2.026 X-Spam-Level: ** X-Spam-Status: No, score=2.026 required=5.5 tests=[AWL=0.650, BAYES_00=-2.599, RCVD_ILLEGAL_IP=1.908, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qLUq-7yZptAq for ; Sun, 24 Oct 2010 12:04:09 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id EB0131B4055 for ; Sun, 24 Oct 2010 12:04:06 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P9zIv-0006wl-4S for gentoo-user-br@gentoo.org; Sun, 24 Oct 2010 14:04:01 +0200 Received: from 2.82.206.157 ([2.82.206.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Oct 2010 14:04:01 +0200 Received: from nunojsilva by 2.82.206.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Oct 2010 14:04:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user-br@lists.gentoo.org From: nunojsilva@ist.utl.pt (Nuno J. Silva) Subject: [gentoo-user-br] Re: Sobre o Erro no env + chroot Date: Sun, 24 Oct 2010 13:05:09 +0100 Message-ID: <87fwvvvlsa.fsf@ist.utl.pt> References: <4CC2358E.5080806@yahoo.com.br> <4CC2E506.7040800@yahoo.com.br> <4CC30C82.3000305@yahoo.com.br> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-br@lists.gentoo.org Reply-to: gentoo-user-br@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2.82.206.157 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:p7nCNwL2rA99SR9cejUFtYkVvZU= Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0b2861ee-9ca1-413a-be4f-0c6e3298e769 X-Archives-Hash: f839bf275916909eadf500eb911d3de6 Thiago Nunes writes: > Em 23 de outubro de 2010 14:25, Cleverson Casarin Uliana > escreveu: > >> Aqui a =C3=BAnica diferen=C3=A7a =C3=A9 o TERM=3Dlinux ao inv=C3=A9s d= e TERM=3Dxterm, talvez porque >> rodei no console fora do Gnome. Mas, novamente retornou "env: chroot: >> Arquivo ou diret=C3=B3rio n=C3=A3o encontrado" e n=C3=A3o entrou no ch= root. Eu sei que n=C3=A3o >> entrou porque continua mostrando /mnt/gentoo # no prompt ao inv=C3=A9s= de passar >> para / # > > Que locura, =C3=A9 como se o env n=C3=A3o estivesse encontrando o chroo= t no > $PATH. Podes tentar passar o caminho todo, /bin/chroot. (O comando que foi usado: env -i HOME=3D$HOME TERM=3D$TERM chroot /mnt/gentoo /bin/bash) Ele n=C3=A3o encontra porque o $PATH est=C3=A1 vazio. Isso n=C3=A3o me pa= ssou pela cabe=C3=A7a, quando respondi na outra thread, mas o que o "-i" faz =C3=A9= ignorar as vari=C3=A1veis que j=C3=A1 est=C3=A3o definidas, pelo que quando "chro= ot" =C3=A9 avaliado o ambiente s=C3=B3 tem HOME e TERM, e *n=C3=A3o* tem PATH. A n=C3=A3o ser que me escape alguma ordem de avalia=C3=A7=C3=A3o da BASH,= isto deve funcionar env -i HOME=3D$HOME TERM=3D$TERM `which chroot` /mnt/gentoo /bin/bash Erro da documenta=C3=A7=C3=A3o, n=C3=A3o? --=20 Nuno J. Silva gopher://sdf-eu.org/1/users/njsg