Changeset 1840

Show
Ignore:
Timestamp:
04/18/07 23:00:00 (21 months ago)
Author:
alexander
Message:

Moved sources out of root.ext2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1828 r1840  
    109109 
    110110# This target populates the root.ext2 image and sets up some mounts 
    111 # Basically, replaces the prep-chroot and createdirs targets 
    112111$(MKTREE): root.ext2 
    113112        mkdir -p $(MP) $(MPBASE)$(SRC) $(MPBASE)$(WD)/bin $(MPBASE)/iso/boot 
    114113        mount -o loop root.ext2 $(MP) 
    115         -rm $(MP)/boot 
    116         mkdir -p $(MKTREE) $(MP)$(SRC) $(MP)$(WD) $(MP)/boot 
     114        -rm -f $(MP)/boot $(MP)$(LFSSRC) 
     115        mkdir -p $(MKTREE) $(MP)$(SRC) $(MP)$(WD) 
     116        mkdir -p $(MP)/boot $(MP)$(LFSSRC) $(MPBASE)/iso$(LFSSRC) 
    117117        mount --bind $(MPBASE)$(ROOT) $(MP)$(ROOT) 
    118118        mount --bind $(MPBASE)$(WD) $(MP)$(WD) 
    119119        mount --bind $(MPBASE)$(SRC) $(MP)$(SRC) 
    120120        mount --bind $(MPBASE)/iso/boot $(MP)/boot 
    121         mkdir -p $(MP)$(LFSSRC) 
     121        mount --bind $(MPBASE)/iso$(LFSSRC) $(MP)$(LFSSRC) 
    122122        -ln -nsf $(MPBASE)$(WD) / 
    123123        -ln -nsf $(MPBASE)$(SRC) / 
    124124        -ln -nsf $(MPBASE)$(ROOT) / 
    125         -ln -nsf $(MP)$(LFSSRC) / 
    126125        -mkdir -p $(MP)/{proc,sys,dev/shm,dev/pts} 
    127126        -mount -t proc proc $(MP)/proc 
     
    163162lfs-base: $(MKTREE) lfsuser 
    164163        @-chown -R lfs $(WD) $(MP)$(WD) $(WD)/bin \ 
    165          $(LFSSRC) $(MP)$(LFSSRC) $(SRC) $(MP)$(SRC) $(MKTREE) 
     164         $(MP)$(SRC) $(MKTREE) 
    166165        @cp $(ROOT)/scripts/unpack $(WD)/bin 
    167166        @make maybe-tools 
     
    412411iso: prepiso 
    413412        @make unmount 
    414         @sync 
     413        # FIXME: sometimes e2fsck bombs out even after a clean build. 
     414        # Kernel bug? 
     415        @sync ; sleep 1 ; sync 
     416        @-e2fsck -f -p root.ext2 
    415417        @$(WD)/bin/mkzftree -F root.ext2 $(MPBASE)/iso/root.ext2 
    416418        @cd $(MPBASE)/iso ; $(WD)/bin/mkisofs -z -R -l --allow-leading-dots -D -o \ 
     
    454456        -umount $(MP)/sys 
    455457        -umount $(MP)/boot 
     458        -umount $(MP)$(LFSSRC) 
    456459        -umount $(MP)$(SRC) 
    457460        -umount $(MP)$(WD) 
    458461        -umount $(MP)$(ROOT) 
    459462        -rmdir $(MP)$(SRC) $(MP)$(WD) $(MP)$(ROOT) 
    460         -rmdir $(MP)/boot 
    461         -ln -s /dev/shm/.cdrom/boot $(MP) 
     463        -rmdir $(MP)/boot $(MP)$(LFSSRC) 
     464        -ln -s /dev/shm/.cdrom/boot /dev/shm/.cdrom$(LFSSRC) $(MP) 
    462465        -umount $(MP) 
    463466