Changeset 1486


Ignore:
Timestamp:
Jun 6, 2007, 1:22:40 AM (12 years ago)
Author:
bruno
Message:
  • export MINDI_TMP so that it may be used by subscripts
  • Suppress error messages from gunzip when testing for kernel content
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.4/mindi/mindi

    r1485 r1486  
    103103
    104104# Now we can create what we need
    105 MINDI_TMP=`mktemp -d $TMPDIR/mindi.XXXXXXXXXX`
     105export MINDI_TMP=`mktemp -d $TMPDIR/mindi.XXXXXXXXXX`
    106106mkdir -p $MINDI_TMP
    107107
     
    867867
    868868    # scan kernel image for initrd filessystem support
    869     lvScanRes=`dd ibs=1 skip=$lvOffset if=$lvKernelImage obs=1M 2>/dev/null | gunzip -c | strings | grep -e "$lcMagicCramfs" -e "$lcMagicExt2fs" -e "$lcMagicInitfs"`
     869    lvScanRes=`dd ibs=1 skip=$lvOffset if=$lvKernelImage obs=1M 2>/dev/null | gunzip -c 2> /dev/null | strings | grep -e "$lcMagicCramfs" -e "$lcMagicExt2fs" -e "$lcMagicInitfs"`
    870870
    871871    # determine which filesystem to use for initrd image: ext2fs, gzip'ed cpio (initramfs ) or cramfs
     
    29492949        mv $MINDI_TMP/* $MINDI_TMP/.??* $MONDO_TMP 2> /dev/null
    29502950        rmdir $MINDI_TMP
    2951         MINDI_TMP=$MONDO_TMP
     2951        export MINDI_TMP=$MONDO_TMP
    29522952        mkdir -p $MINDI_TMP
    29532953        # This is the scratch dir in mondo
Note: See TracChangeset for help on using the changeset viewer.