Jump to content
  • 0

Home in chroot step: root # env -i HOME=/root TERM=...


Go to solution Solved by cardinal,

Question

Is HOME in chroot step:

 root # env -i HOME=/root TERM=$TERM chroot . bash -l

needed if one already has /home in a separate partition?

How is the better setup for such case ?

Edited by abdu
Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Solution

No difference, use the same command.

Chroot requires running as superuser root.

HOME=/root is an environmental variable which sets /root as the home directory for superuser root.

Just because /home is mounted on a different partition than the rest of the file tree doesn't change this fact.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...