Changeset 1986 in MondoRescue
- Timestamp:
- Jun 20, 2008, 3:54:45 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mindi/mindi
r1984 r1986 1016 1016 fi 1017 1017 1018 # set default in case we dont't find it 1019 str_to_find_fmt_with=$current_partition 1020 1018 1021 # This part tries to retrieve the correct device from a LABEL line in /etc/fstab 1019 1022 # current_partition contains only first column of /etc/fstab 1020 1023 if [ "`echo "$current_partition" | /bin/grep -i "LABEL="`" != "" ]; then 1021 str_to_find_fmt_with=$current_partition1022 1024 redhat_label=`echo "$current_partition" | cut -d'=' -f2` 1023 1025 actual_dev="" … … 1089 1091 # current_partition contains only first column of /etc/fstab 1090 1092 elif [ "`echo "$current_partition" | /bin/grep -i "UUID="`" != "" ]; then 1091 str_to_find_fmt_with=$current_partition1092 1093 uuid=`echo "$current_partition" | cut -d'=' -f2` 1093 1094 actual_dev="" … … 1150 1151 # they use symlinks in fstab unrelated to what is shown in mount ! 1151 1152 if [ _"$partition_mountpt" = _"" ]; then 1153 # set default in case we dont't find it 1152 1154 for tmpp in `tr -s '\t' ' ' < $MY_FSTAB | /bin/grep -Ev "^#" | $AWK '{print $1}'`; do 1153 1155 if [ _"`readlink -f $tmpp`" = _"$current_partition" ]; then … … 1157 1159 fi 1158 1160 done 1159 else1160 str_to_find_fmt_with=$current_partition1161 1161 fi 1162 1162 fi
Note:
See TracChangeset
for help on using the changeset viewer.