Changeset 901 in MondoRescue


Ignore:
Timestamp:
Oct 24, 2006, 9:31:35 AM (17 years ago)
Author:
Bruno Cornec
Message:

Attempt to fix #87

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r691 r901  
    11#!/bin/sh
    22#
    3 # 09/05
    4 # - replaced 'grep -w' with 'grep " $.. "'
     3# $Id$
    54#
    6 # 06/11
    7 # - added support for 5th column, for labels
    8 #
    9 # 02/02/2003
    10 # - something
    11 #
    12 # mid-2001
    13 # - first written
    145############################################
    156
    167
    17 #LogIt() {
    18 #    echo "$1" >> /dev/stderr
    19 #}
    20 
    21  
    228read_partition_line() {
    239    local tmp label mountpt mountline command format
     
    3420            LogIt "Not labeling $mountpt as anything because $label is not a label"
    3521        else
    36             command="e2label $mountpt $label"
    3722            if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
    38                 LogIt "Running '$command'"
     23                command="e2label $mountpt $label"
     24                LogIt "Running $command"
    3925                $command
     26            elif [ "$format" = "swap" ] ; then
     27                command="mkswap -L $label $mountpt"
     28                LogIt "Running $command"
    4029            else
    41                 LogIt "I am NOT going to run '$command': the partition is format '$format', which doesn't like e2label anyway"
     30                LogIt "I am NOT going to run e2label: the partition is format '$format', which doesn't like e2label anyway"
    4231            fi
    4332    fi
  • branches/stable/tools/mg

    r869 r901  
    1 egrep -ri -w $* . | egrep -v '\.svn|~:'
     1egrep -ri -w "$*" . | egrep -v '\.svn|~:'
Note: See TracChangeset for help on using the changeset viewer.