You are not logged in.
I recommend that you use a custom bash prompt inside your 32bit chroot installation to know where you are (i.e. inside the 32bit chroot). You can, for example, add a ARCH32 string to your PS1 string that you may have defined in .bashrc or other config file.
Taken from:
http://wiki.archlinux.org/index.php/Arc … bit_system
But no explanation for n00bs like me on how to do that!!
Do I have to edit the .bashrc in the home folder under /opt/arch32/ ? (can I do that from normal root, or do I have to be chrooted?)
And what exactly should the .bashrc look like to give me a reploid@archcomputer-inside32 prompt?
#PS1='[\u@\h \W]\$ '
What has to be edited here in order to give me a separate bash when chrooting into arch32?
Can anybody help me out here before I break my system..?
Offline
Add "-inside32" after "h" in that PS1 in /opt/arch32/.bashrc, shouldn't matter whether you make it before running "chroot" or after.
Offline
Thank you, I can change the name of the bashprompt now.
Problem is that it doesn't seem like it is applied to only the prompt I get when chrooting to arch32. It seems like by editing .bashrc in /opt/arch32/home/reploid, the file is universally changed. Very strange.
Am I still logged in as root in other terminals after having chrooted into arch32 in one of them? How do I get out of chroot and into my normal 64 system to see if bash looks different there?
Last edited by Reploid (2008-05-10 21:48:10)
Offline
Your /opt/arch32 chroot shares the same /home/user dir, You need to change the prompt in the opt/arch32/root/.bashrc file.
mine looks like this...
PS1='\[\e[1;35m\]arch32 ch\u\[\e[m\] \[\e[1;36m\]\w\[\e[m\] \[\e[1;32m\]> \[\e[m\]\[\e[0;37m\]'
PS2='>'
my normal prompt in /home/user/.bashrc and in /root/.bashrc looks like this...
PS1='\[\e[1;35m\]\u\[\e[m\] \[\e[1;36m\]\w\[\e[m\] \[\e[1;32m\]> \[\e[m\]\[\e[0;37m\]'
PS2='>'
to exit the chroot, at the prompt just type exit
-- archlinux 是一个极好的 linux。
Offline