Changeset 3766 in MondoRescue


Ignore:
Timestamp:
Jun 17, 2020, 2:10:41 AM (4 years ago)
Author:
Bruno Cornec
Message:

Remove extra spaces (Christian Werner <Christian.Werner_at_t-online.de>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi/mindi

    r3764 r3766  
    6363    # If "yes", mindi will modify isolinux.cfg for the Xen kernel.
    6464xenkernelpath=""
    65  
     65
    6666MY_FSTAB=/etc/fstab
    6767TAPE_MODS="ht st osst ide-tape ide_tape"
     
    179179# Should be declared here as used immediately below potentialy
    180180MindiExit() {
    181     LogFile "INFO: Mindi $MINDI_VERSION is exiting" 
    182     LogFile "INFO: End date : `date`" 
     181    LogFile "INFO: Mindi $MINDI_VERSION is exiting"
     182    LogFile "INFO: End date : `date`"
    183183    if [ _"$MONDO_SHARE" != _"" ] ; then
    184184        echo "------------- mindi logfile included -------------------------" >> /var/log/mondoarchive.log
     
    380380                rmdir $outdir$resolved > /dev/null 2> /dev/null
    381381                ln -sf $vanilla_resolved_name $outdir$resolved
    382                 LogFile "INFO: Excluding deps $resolved" 
     382                LogFile "INFO: Excluding deps $resolved"
    383383                grep -Fvx "$resolved" "$filelist" > $filelist.tmp
    384                 LogFile "INFO: Replacing it with $vanilla_resolved_name" 
     384                LogFile "INFO: Replacing it with $vanilla_resolved_name"
    385385                echo "$vanilla_resolved_name" >> $filelist.tmp
    386386                mv -f $filelist.tmp $filelist
     
    526526    [ ! -e "$LDLINUXC32" ] && LDLINUXC32=/usr/lib64/syslinux/modules/bios/ldlinux.c32
    527527    #[ ! -e "$LDLINUXC32" ] && LDLINUXC32=`find / -name ldlinux.c32 | grep -x "/.*/ldlinux.c32"`
    528     if [ ! -e "$LDLINUXC32" ]; then 
     528    if [ ! -e "$LDLINUXC32" ]; then
    529529        LogFile "INFO: If you use syslinux 5.x, you may miss ldlinux.c32. If your syslinux RPM doesn't include ldlinux.c32, you may want to download another one"
    530530        LDLINUXC32=/tmp/itdoesntexist
     
    811811        lvUseFilesystem="cramfs"
    812812    else
    813         # In that case, we are most probably after 2.6.30 and use the supported initramfs 
     813        # In that case, we are most probably after 2.6.30 and use the supported initramfs
    814814        LogFile "WARNING: No automatic detection found previously. Supposing initramfs."
    815815        LogFile "WARNING: Report on the MondoRescue mailing-list with your log files and the result of"
     
    829829# $1: raid device (/dev/md...)
    830830GetRaidDevMembers() {
    831     if [ ! -f /etc/raidtab ]; then 
     831    if [ ! -f /etc/raidtab ]; then
    832832        return
    833833    fi
     
    885885
    886886#
    887 # Critical function which computes all dependencies (dyn. lib.) 
     887# Critical function which computes all dependencies (dyn. lib.)
    888888# for a list of binaries
    889889#
     
    905905            fi
    906906        else
    907             deps="$deps $fname" 
     907            deps="$deps $fname"
    908908        fi
    909909    done
     
    953953LogProgress() {
    954954    local i progress modres noof_lines title
    955  
     955
    956956    progress=$1
    957957    noof_lines=$2
     
    965965    fi
    966966
    967     if [ _"$MONDO_SHARE" != _"" ]; then 
     967    if [ _"$MONDO_SHARE" != _"" ]; then
    968968        echo "$title        $i%"
    969969    else
     
    11401140   
    11411141            # 3rd try, which works on a standard partition (ext2/3), but not on swap
    1142             # For LVM gives a /dev/mapper entry 
     1142            # For LVM gives a /dev/mapper entry
    11431143            if [ "x$actual_dev" = "x" ]; then
    11441144                actual_dev=`/bin/mount -l | grep "\[$redhat_label\]" | cut -d' ' -f1`
    11451145            fi
    11461146   
    1147             # 4th try, with vol_id 
     1147            # 4th try, with vol_id
    11481148            # SWAP only
    11491149            if [ "x$actual_dev" = "x" -a -x "/sbin/vol_id" ]; then
     
    12201220            fi
    12211221   
    1222             # 3th try, with vol_id 
     1222            # 3th try, with vol_id
    12231223            if [ "x$actual_dev" = "x" -a -x "/sbin/vol_id" ]; then
    12241224                list_dev=`mount | grep -E '^/' | $AWK '{ print $1 }' `
     
    13161316        # the former is then a link to the latter, so we test whether
    13171317        # $current_partition is actually such a link or not and set
    1318         # $current_lvolume accordingly. On Debian you may find more than one answer 
     1318        # $current_lvolume accordingly. On Debian you may find more than one answer
    13191319        # so we remove the one corresponding to /dev/.static
    13201320        # On RedHat even if the device name is different (/dev/mapper/<VG><LV>), the
     
    13381338            fi
    13391339        fi
    1340         # 
     1340        #
    13411341        # End of LVM device style variation code (other than $current_lvolume).
    13421342
     
    14531453        fi
    14541454    done
    1455     LogAll "-----------------------------------" 
     1455    LogAll "-----------------------------------"
    14561456
    14571457    # Manages potential btrfs subvol partitions so they can be restored
     
    14761476        sep=`btrfs subvolume list -a / | grep FS_TREE | sed 's/.*<FS_TREE>\/\(.*\)/\1/'`
    14771477        echo "btrfs subvolume create /mnt/RESTORING/$sep" >> $MINDI_TMP/create-btrfs-subvol
    1478         while read dev mp type opt dum dum; do 
     1478        while read dev mp type opt dum dum; do
    14791479            echo $dev | grep -qE 'UUID|LABEL'
    14801480            if [ $? -eq 0 ]; then
     
    15961596        cp -f $j $k 2>> $LOGFILE || LogAll "Failed to copy $j to $k"
    15971597        cp -f $j $MINDI_TMP 2>> $LOGFILE || LogAll "Failed to copy $j to $MINDI_TMP"
    1598         if [ _"$MONDO_SHARE" != _"" ]; then 
     1598        if [ _"$MONDO_SHARE" != _"" ]; then
    15991599            cp -f $j $MONDO_ROOT 2>> $LOGFILE || LogAll "Failed to copy $j to $MONDO_ROOT"
    16001600        fi
     
    16431643if [ "$ARCH" != "ia64" ] ; then
    16441644    if [ $KERNEL_IS_XEN = "yes" ]; then
    1645         FindMboot32Binary 
     1645        FindMboot32Binary
    16461646        cp $xenkernelpath $MINDI_TMP/target/xen.gz 2>> $LOGFILE
    16471647        if [ $? -ne 0 ] ; then
     
    16591659MakeMessageFile $MINDI_TMP/target/$tbc | cut -c1-80 > $MINDI_TMP/target/$tbc/message.txt
    16601660
    1661 if [ _"$MONDO_SHARE" != _"" ]; then 
     1661if [ _"$MONDO_SHARE" != _"" ]; then
    16621662    cp -rf $MINDI_TMP/target/$tbc $MONDO_ROOT 2>> $LOGFILE
    16631663    if [ $? -ne 0 ] ; then
     
    24122412        cp -Rdf $MONDO_SHARE/restore-scripts/etc/* $bigdir/etc 2>> $LOGFILE
    24132413    fi
    2414     if [ -d "/lib/dev-state" ]; then 
     2414    if [ -d "/lib/dev-state" ]; then
    24152415        cp -a /lib/dev-state $bigdir/lib/ 2>> $MINDI_TMP/$$.log || LogAll "ERROR: Unable to handle /lib/dev-state" $MINDI_TMP/$$.log
    24162416    fi
     
    24282428    fi
    24292429    if [ $LVM != "false" ]; then
    2430         $MINDI_LIB/analyze-my-lvm > $bigdir/tmp/i-want-my-lvm 
     2430        $MINDI_LIB/analyze-my-lvm > $bigdir/tmp/i-want-my-lvm
    24312431        if [ $? -ne 0 ]; then
    24322432            LVM="false"
     
    27572757    rdz_fname=$MINDI_TMP/initrd.img
    27582758    kernelsize=`du -sk $kernelpath | cut -f1`
    2759     res=0 
     2759    res=0
    27602760    templog=$MINDI_TMP/$$.log
    27612761    > $templog
     
    28202820
    28212821    # Handle the case where busybox and mount are dynamically linked
    2822     file $MINDI_LIB/rootfs/usr/bin/busybox 2>&1 | grep -q "dynamically" 
     2822    file $MINDI_LIB/rootfs/usr/bin/busybox 2>&1 | grep -q "dynamically"
    28232823    if [ $? -eq 0 ]; then
    28242824        # We want to use the real mount and all the supported variants (nfs, cifs, ...)
     
    28902890        cp -rp $MINDI_CACHE/bkphw $targetdir
    28912891        if [ -f $MINDI_CACHE/tools.files ]; then
    2892             lis=`grep -Ev '^#' $MINDI_CACHE/tools.files` 
     2892            lis=`grep -Ev '^#' $MINDI_CACHE/tools.files`
    28932893            LocateDeps $lis > $MINDI_TMP/tools.lis
    28942894            tar cf - $lis `sort -u $MINDI_TMP/tools.lis` 2> $templog | (cd $targetdir ; tar xf -) || LogAll "ERROR: Problem in tools.lis analysis" $templog
     
    33073307    MODULES="$MODULES `/usr/sbin/esxcfg-module -l | $AWK '{print $1}'`"
    33083308fi
    3309 LogFile "-------------" 
     3309LogFile "-------------"
    33103310LogFile "FORCE_MODS:"
    33113311LogFile "-------------"
     
    34133413
    34143414#
    3415 # If we have a USB device we need to store info 
     3415# If we have a USB device we need to store info
    34163416# and remove it from the parameters line
    34173417#
Note: See TracChangeset for help on using the changeset viewer.