Changeset 901 in MondoRescue for branches/stable/mondo
- Timestamp:
- Oct 24, 2006, 9:31:35 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r691 r901 1 1 #!/bin/sh 2 2 # 3 # 09/05 4 # - replaced 'grep -w' with 'grep " $.. "' 3 # $Id$ 5 4 # 6 # 06/117 # - added support for 5th column, for labels8 #9 # 02/02/200310 # - something11 #12 # mid-200113 # - first written14 5 ############################################ 15 6 16 7 17 #LogIt() {18 # echo "$1" >> /dev/stderr19 #}20 21 22 8 read_partition_line() { 23 9 local tmp label mountpt mountline command format … … 34 20 LogIt "Not labeling $mountpt as anything because $label is not a label" 35 21 else 36 command="e2label $mountpt $label"37 22 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then 38 LogIt "Running '$command'" 23 command="e2label $mountpt $label" 24 LogIt "Running $command" 39 25 $command 26 elif [ "$format" = "swap" ] ; then 27 command="mkswap -L $label $mountpt" 28 LogIt "Running $command" 40 29 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" 42 31 fi 43 32 fi
Note:
See TracChangeset
for help on using the changeset viewer.