Tuesday, June 15, 2010

Chapter 6.60 Almost done!

Whoa, I am near the end of Chapter 6. Feeling a bit bored and bleary eyed.
Since this is supposed to be a learning partition, I am not going to strip the debugging flags. I have plenty of space.

I have been doing this after each reboot. Except now tools is excluded.


Previous command: 
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

With tools removed:

chroot "$LFS" /usr/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /bin/bash --login
 
"Ensure that the virtual kernel filesystems are mounted when reentering the chroot. This process was explained in Section 6.2.2,“Mounting and Populating /dev” and Section 6.2.3,“Mounting Virtual Kernel File Systems”."

mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys


I logged out and in again. I will not delete tools. This is my root directory, if I understand that term.

root:/# ls -lrt
total 84
drwxr-xr-x  12 root root  4096 Jun  3 15:15 tools
drwxr-xr-x   2 root root  4096 Jun  7 19:19 opt
drwxr-xr-x   2 root root  4096 Jun  7 19:19 mnt
drwxr-xr-x   2 root root  4096 Jun  7 19:19 home
drwxr-xr-x   2 root root  4096 Jun  7 19:19 boot
drwxr-xr-x   2 root root  4096 Jun  7 19:21 srv
drwxr-xr-x   4 root root  4096 Jun  7 19:21 media
drwxr-xr-x   9 root root  4096 Jun  7 19:28 usr
drwxr-xr-x  12 root root  4096 Jun  7 19:30 var
drwxr-xr-x   2 root root  4096 Jun  9 13:15 rose_notes
drwxr-xr-x  15 root root  4820 Jun 15 08:17 dev
dr-xr-xr-x 124 root root     0 Jun 15 10:13 proc
drwxr-xr-x  12 root root     0 Jun 15 10:13 sys
drwxr-xr-x   2 root root  4096 Jun 15 13:33 bin
drwxr-xr-x   2 root root  4096 Jun 15 13:50 sbin
drwxr-xr-x   6 root root  4096 Jun 15 13:50 lib
drwxrwxrwt   4 root root  4096 Jun 15 13:53 sources
drwxrwxrwt   2 root root 20480 Jun 15 14:15 tmp
drwxr-xr-x   7 root root  4096 Jun 15 14:15 etc
drwxr-x---   2 root root  4096 Jun 15 14:18 root

Next stop Chapter 7.

No comments:

Post a Comment