Changeset 1043 in MondoRescue for trunk/mondo/src/restore-scripts


Ignore:
Timestamp:
Jan 8, 2007, 11:31:22 PM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r978:1042 $SVN_M/branches/stable

Location:
trunk/mondo/src/restore-scripts/mondo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/restore-scripts/mondo/hack-fstab

    r588 r1043  
    11#!/bin/sh
    22#
     3# $Id$
    34#
    4 #
    5 #
    6 #
    7 # 2003/08/04
    8 # - added some logging
    9 #
    10 # mid-2002 --- created
    11 ################################################
    12 
    135
    146LogIt() {
    157    echo "$1" >> /dev/stderr
    168}
    17 
    18 
    199
    2010
     
    3323#    echo "original_fstab_line = $original_fstab_line" >> /dev/stderr
    3424    if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then
    35     if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
    36         device="LABEL=$mountpoint"
    37     fi
     25        if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     26            device="LABEL=$mountpoint"
     27        fi
    3828    fi
    3929
     
    4434    if [ "$original_fstab_line" != "" ] ; then
    4535#   echo $original_fstab_line | gawk '{i=index($0,$4); print substr($0,i);}'
    46     echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
     36        echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '
    4737    else
    48     echo -e "defaults 0 0"
     38        echo -e "defaults 0 0"
    4939    fi
    5040}
    51 
    5241
    5342
  • trunk/mondo/src/restore-scripts/mondo/restore-bigfiles-from-iso

    r588 r1043  
    6363            if echo "$slicename" | grep "bz2" > /dev/null ; then
    6464                bzip2 -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename"
     65            elif echo "$slicename" | grep "gz" > /dev/null ; then
     66                gzip -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename"
    6567            elif echo "$slicename" | grep "lzo" > /dev/null ; then
    6668                lzop -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename"
  • trunk/mondo/src/restore-scripts/mondo/stabgrub-me

    r839 r1043  
    3232        LogIt "No need for fstab search." 2
    3333#        fstab_list=/mnt/RESTORING/etc/fstab
    34     old_fstab=/mnt/RESTORING/etc/fstab
    35     old_grubconf=/mnt/RESTORING/etc/grub.conf
     34        old_fstab=/mnt/RESTORING/etc/fstab
     35        old_grubconf=/mnt/RESTORING/etc/grub.conf
    3636        # For some distros, e.g. Debian, /etc/grub.conf is a symbolic link
    37     # which we need to resolve and prepend with /mnt/RESTORING because
    38     # we run this outside the chroot.
    39     if [ -L "$old_grubconf" ] ; then
    40         old_grubconf=/mnt/RESTORING`readlink "$old_grubconf"`
    41     fi 
    42     return 0
     37        # which we need to resolve and prepend with /mnt/RESTORING because
     38        # we run this outside the chroot.
     39        if [ -L "$old_grubconf" ] ; then
     40            old_grubconf=/mnt/RESTORING/etc/`readlink "$old_grubconf"`
     41        fi 
     42        return 0
    4343    elif [ -f "/mnt/cdrom/archives/CUCKOO" ] ; then
    4444        LogIt "Because I'm cuckoo, I'll stop searching." 2
Note: See TracChangeset for help on using the changeset viewer.