#!/bin/bash

export LFS=/mnt/lfs

mkdir -p $LFS/{proc,sys}

#always mount that before chrooting:
mount -t proc proc $LFS/proc
#this needs devpts support in host kernel, check dev* in "cat /proc/filesystems":
mount -t sysfs sysfs $LFS/sys
#dont forget unmounting...

#fakemount some filesystems to keep host up to date:
mount -f -t ramfs ramfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
