Changeset 1840
- Timestamp:
- 04/18/07 23:00:00 (21 months ago)
- Files:
-
- 1 modified
-
trunk/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1828 r1840 109 109 110 110 # This target populates the root.ext2 image and sets up some mounts 111 # Basically, replaces the prep-chroot and createdirs targets112 111 $(MKTREE): root.ext2 113 112 mkdir -p $(MP) $(MPBASE)$(SRC) $(MPBASE)$(WD)/bin $(MPBASE)/iso/boot 114 113 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) 117 117 mount --bind $(MPBASE)$(ROOT) $(MP)$(ROOT) 118 118 mount --bind $(MPBASE)$(WD) $(MP)$(WD) 119 119 mount --bind $(MPBASE)$(SRC) $(MP)$(SRC) 120 120 mount --bind $(MPBASE)/iso/boot $(MP)/boot 121 m kdir -p$(MP)$(LFSSRC)121 mount --bind $(MPBASE)/iso$(LFSSRC) $(MP)$(LFSSRC) 122 122 -ln -nsf $(MPBASE)$(WD) / 123 123 -ln -nsf $(MPBASE)$(SRC) / 124 124 -ln -nsf $(MPBASE)$(ROOT) / 125 -ln -nsf $(MP)$(LFSSRC) /126 125 -mkdir -p $(MP)/{proc,sys,dev/shm,dev/pts} 127 126 -mount -t proc proc $(MP)/proc … … 163 162 lfs-base: $(MKTREE) lfsuser 164 163 @-chown -R lfs $(WD) $(MP)$(WD) $(WD)/bin \ 165 $( LFSSRC) $(MP)$(LFSSRC) $(SRC) $(MP)$(SRC) $(MKTREE)164 $(MP)$(SRC) $(MKTREE) 166 165 @cp $(ROOT)/scripts/unpack $(WD)/bin 167 166 @make maybe-tools … … 412 411 iso: prepiso 413 412 @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 415 417 @$(WD)/bin/mkzftree -F root.ext2 $(MPBASE)/iso/root.ext2 416 418 @cd $(MPBASE)/iso ; $(WD)/bin/mkisofs -z -R -l --allow-leading-dots -D -o \ … … 454 456 -umount $(MP)/sys 455 457 -umount $(MP)/boot 458 -umount $(MP)$(LFSSRC) 456 459 -umount $(MP)$(SRC) 457 460 -umount $(MP)$(WD) 458 461 -umount $(MP)$(ROOT) 459 462 -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) 462 465 -umount $(MP) 463 466
