Last active
December 20, 2015 08:09
-
-
Save wcypierre/6098694 to your computer and use it in GitHub Desktop.
[Chroot] .bashrc does not work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As the shell created when you chroot is a login shell, so .bashrc does not works. | |
Hence, cp the .bashrc to .bash_profile and it will work. Keep the .bashrc as well in the case that you need to spawn another bash instance | |
http://stackoverflow.com/questions/13570558/user-environment-is-not-sourced-with-chroot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment