Changeset 1624

Show
Ignore:
Timestamp:
07/12/06 18:23:08 (2 years ago)
Author:
justin
Message:

Corrected the essential symlinks section for CLFS, mount --bind /dev instead, directory creation optimization as in CLFS.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cross/Makefile

    r1618 r1624  
    138138        -mount -t proc proc $(MP)/proc 
    139139        -mount -t sysfs sysfs $(MP)/sys 
    140         -mount -t tmpfs tmpfs $(MP)/dev/shm 
    141         -mount -t devpts -o gid=4,mode=620 devpts $(MP)/dev/pts 
    142         -install -d $(MP)/{bin,etc/opt,home,lib,mnt} 
    143         -install -d $(MP)/{sbin,srv,usr/local,var,opt} 
    144         -install -d $(MP)/root -m 0750 
    145         -install -d $(MP)/tmp $(MP)/var/tmp -m 1777 
    146         -install -d $(MP)/media/{floppy,cdrom} 
    147         -install -d $(MP)/usr/{bin,include,lib,sbin,share,src} 
    148         -ln -s share/{man,doc,info} $(MP)/usr 
    149         -install -d $(MP)/usr/share/{doc,info,locale,man} 
    150         -install -d $(MP)/usr/share/{misc,terminfo,zoneinfo} 
    151         -install -d $(MP)/usr/share/man/man{1,2,3,4,5,6,7,8} 
    152         -install -d $(MP)/usr/local/{bin,etc,include,lib,sbin,share,src} 
    153         -ln -s share/{man,doc,info} $(MP)/usr/local 
    154         -install -d $(MP)/usr/local/share/{doc,info,locale,man} 
    155         -install -d $(MP)/usr/local/share/{misc,terminfo,zoneinfo} 
    156         -install -d $(MP)/usr/local/share/man/man{1,2,3,4,5,6,7,8} 
    157         -install -d $(MP)/var/{lock,log,mail,run,spool} 
    158         -install -d $(MP)/var/{opt,cache,lib/{misc,locate},local} 
    159         -install -d $(MP)/opt/{bin,doc,include,info} 
    160         -install -d $(MP)/opt/{lib,man/man{1,2,3,4,5,6,7,8}} 
    161         -install -d $(MP)/{,usr/{,local},opt}/lib 
    162         -install -d /usr/lib/locale 
    163         -ln -s ../lib/locale /usr/lib 
    164140        -mknod -m 600 $(MP)/dev/console c 5 1 
    165141        -mknod -m 666 $(MP)/dev/null c 1 3 
    166         -mknod -m 666 $(MP)/dev/zero c 1 5 
    167         -mknod -m 666 $(MP)/dev/ptmx c 5 2 
    168         -mknod -m 666 $(MP)/dev/tty c 5 0 
    169         -mknod -m 444 $(MP)/dev/random c 1 8 
    170         -mknod -m 444 $(MP)/dev/urandom c 1 9 
    171         # No chown because this will not affect the permissions in any way. 
    172         -ln -s /proc/self/fd $(MP)/dev/fd 
    173         -ln -s /proc/self/fd/0 $(MP)/dev/stdin 
    174         -ln -s /proc/self/fd/1 $(MP)/dev/stdout 
    175         -ln -s /proc/self/fd/2 $(MP)/dev/stderr 
    176         -ln -s /proc/kcore $(MP)/dev/core 
     142        -mount --bind /dev $(MP)/dev 
     143        -mount -f -vt tmpfs tmpfs $(MP)/dev/shm 
     144        -mount -f -vt devpts -o gid=4,mode=620 devpts $(MP)/dev/pts 
     145        -mkdir -pv /{bin,boot,dev,{etc/,}opt,home,lib,mnt} 
     146        -mkdir -pv /{proc,media/{floppy,cdrom},sbin,srv,sys} 
     147        -mkdir -pv /var/{lock,log,mail,run,spool} 
     148        -mkdir -pv /var/{opt,cache,lib/{misc,locate},local} 
     149        -install -dv -m 0750 /root 
     150        -install -dv -m 1777 {/var,}/tmp 
     151        -mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src} 
     152        -mkdir -pv /usr/{,local/}share/{doc,info,locale,man} 
     153        -mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo} 
     154        -mkdir -pv /usr/{,local/}share/man/man{1..8} 
     155        -ln -sv share/{man,doc,info} /usr 
     156        -ln -sv share/{man,doc,info} /usr/local 
    177157 
    178158# This target builds just a base CLFS system, minus the kernel and bootscripts 
     
    331311 
    332312createfiles: 
    333         @-$(WD)/bin/ln -s $(WD)/bin/{bash,cat,pwd,stty} /bin 
    334         @-$(WD)/bin/ln -s $(WD)/bin/perl /usr/bin 
    335         @-$(WD)/bin/ln -s $(WD)/lib/libgcc_s.so{,.1} /usr/lib 
    336         @-$(WD)/bin/ln -s bash /bin/sh 
    337         @-$(WD)/bin/ln -s $(WD)/lib64/libgcc_s.so{,.1} /usr/lib64 
     313        @-ln -sv $(WD)/bin/{bash,cat,grep,pwd,stty} /bin 
     314        @-ln -sv $(WD)/lib/libgcc_s.so{,.1} /usr/lib 
     315        @-ln -sv $(WD)/lib/libstd* /usr/lib 
     316        @-ln -sv bash /bin/bash 
    338317        @touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 
    339318        @chgrp utmp /var/run/utmp /var/log/lastlog