I'm trying to create a Linux image with custom picked packages.
What I'm trying to do is to hand craft the packages I'm going to use on an XO laptop, because compiling packages takes really long time on the real XO hardware, if I can build all the packages I need and just flash the image to the XO, I can save time and space.
When I tried to install some packages, it failed to configure due to missing the proc, sys, dev directories. So, I learned from other places that I need to "mount" the host proc, ... directories to my chroot environment.
I saw two syntax and am not sure which one to use.
In host machine:
mount --bind /proc <chroot dir>/proc
and another syntax (in chroot environment):
mount -t proc none /proc
Which one should I use, and what are the difference?
chroot()
'. In particular, the determined can read files outside of their section of the file system if you are not careful.