Skip to content

Instantly share code, notes, and snippets.

@wcypierre
Last active December 20, 2015 08:09
Show Gist options
  • Save wcypierre/6098694 to your computer and use it in GitHub Desktop.
Save wcypierre/6098694 to your computer and use it in GitHub Desktop.
[Chroot] .bashrc does not work
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