[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Am i in the chroot?



Ok, dchroot -d solves the problem... nvm :)

El Sábado, 11 de Diciembre de 2004 18:28, Rafael Rodríguez escribió:
> Would be very  nice.. but i'm afraid my .bashrc doesn't load when i
> dchroot!
>
> I don't know what's happening... For example, i have a
>
> PATH=~/bin:${PATH}
>
> in my .bashrc, and when i'm outside the chroot, it works... but my $PATH
> into the chroot doesn't have the new dir! (like .bashrc isn't loaded or
> something).
>
> Doesn't dchroot load a brand new shell or what?
>
> Regards,
>
> Rafael Rodríguez
>
> El Sábado, 11 de Diciembre de 2004 17:07, Peter Palfrader escribió:
> > On Sat, 11 Dec 2004, Rafael Rodríguez wrote:
> > > Hi. Any simple command so in a shell i can know if i'm into my 32-bit
> > > chroot or in the main system?
> >
> > echo 'i386' > /home/chroot/etc/debian_chroot
> >
> > ~/.zshrc:
> >
> > if [ -e /etc/debian_chroot ]; then
> >         debian_chroot=$(cat /etc/debian_chroot)
> > fi
> >
> > export PROMPT="${debian_chroot:+[$debian_chroot] }%n@%m:%~$ "



Reply to: