# locale
chroot $DIRÂ locale-gen $LANG
+
+# bind mounts
+if ! grep -q $DIR /etc/fstab; then
+ cat <<EOF >> /etc/fstab
+
+# $DISTÂ chroot
+/home $DIR/home none bind 0 0
+/proc $DIR/proc none bind 0 0
+/sys $DIR/sys none bind 0 0
+/tmp $DIR/tmp none bind 0 0
+EOF
+ mount $DIR/home
+ mount $DIR/proc
+ mount $DIR/sys
+ mount $DIR/tmp
+fi
+