Skip to content

Commit 2abf00a

Browse files
committed
whoops forgot this one
1 parent d7ada29 commit 2abf00a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

chap6

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
LFS=/mnt/lfs
4+
5+
sudo mkdir -v $LFS/{dev,proc,sys}
6+
sudo mknod -m 600 $LFS/dev/console c 5 1
7+
sudo mknod -m 666 $LFS/dev/null c 1 3
8+
9+
10+
sudo mount -v --bind /dev $LFS/dev
11+
sudo mount -vt devpts devpts $LFS/dev/pts
12+
sudo mount -vt tmpfs shm $LFS/dev/shm
13+
sudo mount -vt proc proc $LFS/proc
14+
sudo mount -vt sysfs sysfs $LFS/sys
15+
sudo chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h

0 commit comments

Comments
 (0)