Introduces select.sh
[lcapit-junk-code.git] / lfs-chroot
blob0e57b87e1a1f32bce056cb861e67b13a499f5a80
1 #!/bin/sh
3 LFS=$1
5 if [ -z "$LFS" ]; then
6 echo "You must specify where the LFS is"
7 exit 1
8 fi
10 mount --bind /dev $LFS/dev
11 mount -t devpts devpts $LFS/dev/pts
12 mount -t tmpfs shm $LFS/dev/shm
13 mount -t proc proc $LFS/proc
14 mount -t sysfs sysfs $LFS/sys
16 chroot "$LFS" /tools/bin/env -i \
17 HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
18 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
19 /tools/bin/bash --login +h