Changeset 1987

Show
Ignore:
Timestamp:
07/26/07 17:22:15 (1 year ago)
Author:
jhuntwork
Message:

Merged r1950 to x86_64 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/x86_64/packages/initramfs/Makefile

    r1983 r1987  
    4343        cp /usr/sbin/dmsetup $(WDIR)/sbin 
    4444        find /lib/modules/*/kernel/drivers/{ata,base,block,cdrom,ide,ieee1394,firewire,hid,message,scsi,pcmcia,usb/{core,host,storage}} \ 
    45             /lib/modules/*/kernel/fs/{mbcache.ko,ext2,ext3,ext4,reiserfs,xfs,fat,vfat,ntfs,isofs,udf,nls} \ 
     45            /lib/modules/*/kernel/fs/{mbcache.ko,ext2,ext3,ext4,jbd,reiserfs,xfs,fat,vfat,ntfs,isofs,udf,nls} \ 
    4646            /lib/modules/*/kernel/lib -type f | cpio --make-directories -p $(WDIR) 
    4747        for a in /lib/modules/* ; do ver=$${a##*/} ; depmod -b $(WDIR) $$ver ; done 
  • branches/x86_64/packages/initramfs/init.in

    r1983 r1987  
    1010root= 
    1111rootdelay= 
    12 rootfstype=ext3,ext2,auto 
     12rootfstype=auto 
    1313ro="ro" 
    1414noresume=0 
     
    8282        umount -n /.tmpfs/.cdrom 
    8383        /sbin/losetup /dev/loop2 /.tmpfs/.fakecd.iso 
     84        if [ -d /.tmpfs/.partition ] ; then 
     85                /sbin/losetup -d /dev/loop3 
     86                umount -n /.tmpfs/.partition && rm -rf /.tmpfs/.partition 
     87        fi 
    8488        ln -sf /dev/loop2 /dev/lfs-cd 
    8589} 
     
    98102        umount -n /.tmpfs/.cdrom 
    99103} 
    100  
    101104 
    102105do_mount_cd() { 
     
    136139                fi 
    137140        done 
    138         mkdir /.tmpfs 
    139         mount -n -t tmpfs -o size=90% tmpfs /.tmpfs 
    140141        mkdir /.tmpfs/.cdrom 
    141142        detect_cd_type 
     
    151152        mount -n -t ext2 /dev/mapper/lfs-cd /.root 
    152153        mount -n --move /.tmpfs /.root/dev/shm 
     154        if [ "$toram" != 1 ] && [ ! -d /.root/dev/shm/.partition ] ; then 
     155                cp -a /dev/lfs-cd /.root/dev/lfs-cd 
     156        fi 
    153157        if [ "$toram" != 1 ] ; then 
    154                 cp -a /dev/lfs-cd /.root/dev/lfs-cd 
    155158                ln -sf /dev/shm/.cdrom/drivers /.root/drivers 
    156159        fi 
     
    163166                rm -f /.root/etc/udev/rules.d/76-network.rules 
    164167        fi 
     168} 
     169 
     170do_mount_iso() { 
     171        DEVICE=${root#iso:} 
     172        FILE=${DEVICE#*:} 
     173        DEVICE=${DEVICE%%:*} 
     174        mkdir /.tmpfs/.partition 
     175        mount -n -t "$rootfstype" -o "$rootflags" "$DEVICE" /.tmpfs/.partition 
     176        /sbin/losetup /dev/loop3 "/.tmpfs/.partition/$FILE" 
     177        ln -sf /dev/loop3 /dev/lfs-cd 
     178        do_mount_cd 
    165179} 
    166180 
     
    170184        rootflags="$rootflags$ro" 
    171185        case "$root" in 
     186        iso:*) 
     187                mkdir /.tmpfs 
     188                mount -n -t tmpfs -o size=90% tmpfs /.tmpfs 
     189                do_mount_iso 
     190                ;; 
    172191        *:*) 
    173192                ( IFS=":" ; mknod /dev/root b $root ) 
     
    178197                ;; 
    179198        "") 
     199                mkdir /.tmpfs 
     200                mount -n -t tmpfs -o size=90% tmpfs /.tmpfs 
    180201                do_mount_cd 
    181202                ;; 
  • branches/x86_64/scripts/shutdown-helper

    r1976 r1987  
    2424/dev/console 
    2525/dev/null 
    26 /dev/lfs-cd 
    2726/dev/loop0 
     27/dev/loop3 
    2828/dev/mapper/control" 
    2929 
     
    6969done 
    7070[ "\$TIMEOUT" = "....." ] && fail 
     71 
    7172dmsetup remove_all || fail 
    7273losetup -d /dev/loop0 || fail 
    7374umount -n /.cdrom || fail 
    74 eject -r /dev/lfs-cd 
    75 echo -n "Take the CD, close the CD-ROM tray and press Enter..." 
    76 ( sleep 30 ; halt ) & 
    77 read ENTER 
     75 
     76if [ -d /.partition ] ; then 
     77        losetup -d /dev/loop3 || fail 
     78        umount -n /.partition || fail 
     79fi 
     80 
     81if [ -b /dev/lfs-cd ] ; then 
     82        eject -r /dev/lfs-cd 
     83        echo -n "Take the CD, close the CD-ROM tray and press Enter..." 
     84        ( sleep 30 ; halt ) & 
     85        read ENTER 
     86fi 
    7887halt 
    7988EOF