Changeset 1926
- Timestamp:
- 06/23/07 23:25:17 (19 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 modified
- 1 moved
-
Makefile (modified) (5 diffs)
-
etc/issue.fullcd (moved) (moved from trunk/etc/issue)
-
etc/issue.nosrc (added)
-
etc/issue.toram (added)
-
packages/initramfs/init.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1923 r1926 115 115 mkdir -p $(MP) $(MPBASE)$(SRC) $(MPBASE)$(WD)/bin $(MPBASE)/iso/boot 116 116 mount -o loop root.ext2 $(MP) 117 -rm -f $(MP)/boot $(MP)$(LFSSRC)117 -rm -f $(MP)/boot 118 118 mkdir -p $(MKTREE) $(MP)$(SRC) $(MP)$(WD) 119 119 mkdir -p $(MP)/boot $(MP)$(LFSSRC) $(MPBASE)/iso$(LFSSRC) … … 187 187 @chroot "$(MP)" $(chenv-blfs) 'set +h && cd $(ROOT) && \ 188 188 make blfs $(chbash-post-bash)' 189 @install -m644 etc/issue $(MP)/etc/issue189 @install -m644 etc/issue* $(MP)/etc 190 190 191 191 lfsuser: … … 363 363 mandb -c 2>/dev/null 364 364 echo 'dummy / ext2 defaults 0 0' >/etc/mtab 365 updatedb --prunepaths='/sources /tools /lfs-livecd / proc /sys /dev /tmp /var/tmp'365 updatedb --prunepaths='/sources /tools /lfs-livecd /lfs-sources /proc /sys /dev /tmp /var/tmp' 366 366 echo >/etc/mtab 367 367 … … 380 380 @install -m644 isolinux/{isolinux.cfg,*.msg,splash.lss} $(MP)/boot/isolinux 381 381 @sed -i "s/Version:/Version: $(VERSION)/" $(MP)/boot/isolinux/boot.msg 382 @sed -i "s/Version:/Version: $(VERSION)/" $(MP)/etc/issue 382 @sed -i "s/Version:/Version: $(VERSION)/" $(MP)/etc/issue* 383 383 @install -m644 doc/README doc/lfscd-remastering-howto.txt $(MP)/root 384 384 @sed -i "s/\[version\]/$(VERSION)/" $(MP)/root/README … … 442 442 -rmdir $(MP)$(SRC) $(MP)$(WD) $(MP)$(ROOT) 443 443 -rmdir $(MP)/boot $(MP)$(LFSSRC) 444 -ln -s /dev/shm/.cdrom/boot /dev/shm/.cdrom$(LFSSRC)$(MP)444 -ln -s /dev/shm/.cdrom/boot $(MP) 445 445 -umount $(MP) 446 446 -
trunk/packages/initramfs/init.in
r1912 r1926 15 15 all_generic_ide=0 16 16 toram=0 17 cdtype= 17 18 18 19 find_cd() { … … 42 43 43 44 copy_cd_to_ram() { 45 echo "Copying LFS LiveCD to RAM. This will take several minutes..." 44 46 mount -n -t iso9660 -o ro,norock /dev/lfs-cd /.tmpfs/.cdrom 45 47 cat /fakecd.iso.head >/.tmpfs/.fakecd.iso … … 81 83 } 82 84 85 detect_cd_type() { 86 mount -n -t iso9660 -o ro /dev/lfs-cd /.tmpfs/.cdrom 87 if [ -d /.tmpfs/.cdrom/lfs-sources ] ; then 88 if [ "$toram" = 1 ] ; then 89 cdtype=toram 90 else 91 cdtype=fullcd 92 fi 93 else 94 cdtype=nosrc 95 fi 96 umount -n /.tmpfs/.cdrom 97 } 98 99 83 100 do_mount_cd() { 84 101 i=1 … … 120 137 mount -n -t tmpfs -o size=90% tmpfs /.tmpfs 121 138 mkdir /.tmpfs/.cdrom 139 detect_cd_type 122 140 if [ "$toram" = 1 ] ; then copy_cd_to_ram ; fi 123 141 mount -n -t iso9660 -o ro /dev/lfs-cd /.tmpfs/.cdrom … … 133 151 if [ "$toram" != 1 ] ; then cp -a /dev/lfs-cd /.root/dev/lfs-cd ; fi 134 152 cat /etc/modprobe.conf >>/.root/etc/modprobe.conf 153 ln -sf issue.$cdtype /.root/etc/issue 154 if [ "$cdtype" = "fullcd" ] ; then 155 ln -sf /dev/shm/.cdrom/lfs-sources /.root/lfs-sources 156 fi 135 157 } 136 158
