abdu Posted February 14, 2021 Report Share Posted February 14, 2021 (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, 2021 by abdu Link to comment Share on other sites More sharing options...
0 cardinal Posted February 14, 2021 Report Share Posted February 14, 2021 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 comment Share on other sites More sharing options...
Question
abdu
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 comment
Share on other sites
1 answer to this question
Recommended Posts