abdu 0 Posted February 14 Report Share Posted February 14 (edited) 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 February 14 by abdu Link to post Share on other sites
0 Solution cardinal 77 Posted February 14 Solution Report Share Posted February 14 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
Question
abdu 0
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 abduLink to post
Share on other sites
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now