Changeset 1312


Ignore:
Timestamp:
Apr 16, 2007, 1:05:53 AM (12 years ago)
Author:
bruno
Message:

Suppress losetup usage in start-nfs (unreliable and doesn't work with QEMU)

Location:
branches/stable/mindi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/ChangeLog

    r1310 r1312  
    44
    551.2.2 (2007-04-15)
     6- Suppress losetup usage in start-nfs (unreliable and doesn't work with QEMU (Bruno Cornec)
    67- Fix a bug where losetup is called with only one parameter (#140) (Bruno Cornec)
    78- Fix a bug on NFS in FC6 - fscache module needed (Bruno Cornec)
  • branches/stable/mindi/mindi

    r1281 r1312  
    18131813
    18141814    tar -zxf $MINDI_LIB/dev.tgz || LogIt "Cannot untar dev.tgz"
    1815     losetup /dev/loop0 > /dev/null 2> /dev/null
    1816     [ "$?" -eq "0" ] || losetup /dev/loop0 -d || Die "Please free up /dev/loop0 by typing 'losetup /dev/loop0 -d'.\nReboot if necessary."
     1815    # BERLIOS : Useless and generating errors on CentOS ? (losetup miss a param)
     1816    #losetup /dev/loop0 > /dev/null 2> /dev/null
     1817    #[ "$?" -eq "0" ] || losetup /dev/loop0 -d || Die "Please free up /dev/loop0 by typing 'losetup /dev/loop0 -d'.\nReboot if necessary."
    18171818    CopyBootBFile $mtpt/boot.b
    18181819
     
    19491950    fi
    19501951    cd $old_pwd
    1951     losetup /dev/loop0 > /dev/null 2> /dev/null
    1952     [ "$?" -eq "0" ] || losetup /dev/loop0 -d || Die "Please free up /dev/loop0 by typing   'losetup /dev/loop0 -d'.\nReboot if necessary."
     1952    # BERLIOS : Useless and generating errors on CentOS ? (losetup miss a param)
     1953    #losetup /dev/loop0 > /dev/null 2> /dev/null
     1954    #[ "$?" -eq "0" ] || losetup /dev/loop0 -d || Die "Please free up /dev/loop0 by typing   'losetup /dev/loop0 -d'.\nReboot if necessary."
    19531955    CopyBootBFile $mountpoint/boot.b
    19541956
     
    27742776        # unmount loop filesystem and create image file using the standard approach
    27752777        umount $mountpoint || Die "Cannot unmount $tempfile"
    2776         dd if=$tempfile bs=1k 2> /dev/null | gzip -v9 > $rdz_fname 2> /dev/null
     2778        dd if=$tempfile bs=1k 2> /dev/null > ${rdz_fname}.tmp 2> /dev/null
     2779        bs=`tune2fs -l ${rdz_fname}.tmp | grep -E '^Block size:' | cut -d: -f2`
     2780        ADDITIONAL_BOOT_PARAMS="$ADDITIONAL_BOOT_PARAMS ramdisk_blocksize=$bs"
     2781        gzip -v9 ${rdz_fname}.tmp > $rdz_fname 2> /dev/null
     2782        rm -f ${rdz_fname}.tmp
    27772783        # log that we are done
    27782784        echo "...done." >> $LOGFILE
  • branches/stable/mindi/rootfs/sbin/start-nfs

    r1158 r1312  
    7474
    7575LogIt "Mounting NFS image ${imgname}-1.iso in $dirimg on /mnt/cdrom in loopback"
    76 losetup /dev/loop7 /tmp/isodir/$dirimg/${imgname}-1.iso
    77 mount -o ro -t iso9660 /dev/loop7 /mnt/cdrom
     76mount -o ro -t iso9660 /tmp/isodir/$dirimg/${imgname}-1.iso /mnt/cdrom
Note: See TracChangeset for help on using the changeset viewer.