I'm trying to create a Linux image with custom picked packages. I followed the guide here
However, 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.
Though, 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 envrionment):
mount -t proc none /proc
Which one should I use, and what are the difference?
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.