After making my working directory as fake root file system,

I had to explicitly mount /proc from actual root file system to my fake(temporary) root file system

sudo mount -o bind /proc /home/abcd/workspace/apolo.0/proc

Without a mount, Doesn't my fake root file system show all the process states that actual root proc file system shows?

  • No. Without binding /chroot/proc to /proc there is no interface the chroot processes can work with. Now, depending on what you want to do in your chroot you may or may not need to mount it. – ivanivan Apr 7 '17 at 21:07
  • @ivanivan So, Without mount, /chroot/proc will show only processes that are launched from /chroot/proc directory? init process is not one of them, for example – overexchange Apr 7 '17 at 21:22
  • Do you mean With a mount rather than Without a mount? Without a mount, of course, /chroot/proc will not contain anything at all (unless you manually put something there)... – Celada Apr 7 '17 at 21:26
  • @Celada Yes I just checked nothink is in /chroot/proc. Am talking Without a mount – overexchange Apr 7 '17 at 21:27
  • @Celada Do I need to also copy /etc/resolve.conf to /CHROOT/etc/resolv.conf? as post setup activity? – overexchange Apr 7 '17 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.