Changeset 1255


Ignore:
Timestamp:
Mar 20, 2007, 11:56:09 PM (13 years ago)
Author:
bruno
Message:

Improve mindi logfile by removing useless messages from mke2fs

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1246 r1255  
    406406    dd if=/dev/zero of=$imagefile bs=1k count=1440 &> /dev/null || LogIt "Cannot dd (CODI)"
    407407    echo "Creating ext2 filesystem on $imagefile" >> $LOGFILE
    408     mke2fs -N 12 -F $imagefile >> $LOGFILE 2>> $LOGFILE
     408    mke2fs -N 12 -F $imagefile &> /dev/null || Die "Unable to create an ext2 file system on $imagefile"
    409409    mount -t ext2 -o loop $imagefile $mountpoint || Die "Can't loopmount $imagefile to $mountpoint! The reason may be missing support for loopfs or ext2 (or both) in the running kernel."
    410410    mv $tarball $mountpoint/
     
    17931793    dd if=/dev/zero of=$image bs=1k count=$disksize &> /dev/null
    17941794    echo "Creating ext2 filesystem on $image" >> $LOGFILE
    1795     mke2fs -N 26 -F $image &> /dev/null
     1795    mke2fs -N 26 -F $image &> /dev/null || Die "Unable to create an ext2 file system on $image"
    17961796    mkdir -p $mtpt
    17971797    mount -o loop $image $mtpt
     
    19321932    else
    19331933        echo "Creating ext2 filesystem on $imagefile" >> $LOGFILE
    1934         mke2fs -N 26 -m 0 -F $imagefile >> $LOGFILE 2>> $LOGFILE
     1934        mke2fs -N 26 -m 0 -F $imagefile &> /dev/null || Die "Unable to create an ext2 file system on $imagefile"
    19351935        t=ext2
    19361936    fi
     
    26622662    echo -en "..."
    26632663    echo "Creating ext2 filesystem on $tempfile" >> $LOGFILE
    2664     mke2fs -b 1024 -m 1 -i 2048 -F $tempfile >> $LOGFILE 2>> $LOGFILE
     2664    mke2fs -b 1024 -m 1 -i 2048 -F $tempfile &> /dev/null || Die "Unable to create an ext2 file system on $tempfile"
    26652665    echo -en "..."
    26662666    mkdir -p $mountpoint
Note: See TracChangeset for help on using the changeset viewer.