Mailinglist Archive: opensuse-factory (175 mails)
| < Previous | Next > |
Re: [opensuse-factory] chrooted factory question
- From: Christian Boltz <opensuse@xxxxxxxxx>
- Date: Tue, 22 Jul 2008 13:18:23 +0200
- Message-id: <200807221318.25069@xxxxxxxxxxxxxxx>
Hello,
on Dienstag, 22. Juli 2008, Carlos E. R. wrote:
...
Well, if you put it after the chroot command, it is executed after the
chroot _exits_. (You don't see the result because your script ends
afterwards.)
Ouch. This sounds annoying and error-prone (I'm quite sure you will
forget to change the prompt some day...)
Add the "export PS1" command to /etc/bash.bashrc.local in your factory
installation ;-) (create the file if it doesn't exist already)
Regards,
Christian Boltz
--
deal. :) [Martin Sommer and > Robert Schiele in opensuse]
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
on Dienstag, 22. Juli 2008, Carlos E. R. wrote:
...
which is a good enough approximation to what I want, thanks. I wrote
it as a comment in my script before the chroot command, because after
it, it doesn't execute (and I don't want to change the profile or
bashrc):
Well, if you put it after the chroot command, it is executed after the
chroot _exits_. (You don't see the result because your script ends
afterwards.)
echo " Copy paste the next line to activate prompt change:"
Ouch. This sounds annoying and error-prone (I'm quite sure you will
forget to change the prompt some day...)
echo "export PS1=$'\\[\E[1m\E[31m\\]NOT_\\h:\\w # \\[\E(B\E[m\\]'"
echo
chroot /otros/test_d/ /bin/bash --login
Add the "export PS1" command to /etc/bash.bashrc.local in your factory
installation ;-) (create the file if it doesn't exist already)
Regards,
Christian Boltz
--
So I have to pay 60 bugs to get 851 bugs. Sounds like a really goodCurrently you get a SUSE Linux box for 60 bugs with 1 DVD, 5 CDs,Although there are actually more bugs available for SUSE LINUX 10.0,
as you can easily see at bugzilla
deal. :) [Martin Sommer and > Robert Schiele in opensuse]
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |