Changeset 3084 in MondoRescue
- Timestamp:
- Mar 2, 2013, 5:38:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3081 r3084 1105 1105 partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$current_partition" | grep -vx " *#.*" | $AWK '{print $2}' | head -n1` 1106 1106 1107 # Detects noauto partitions not mounted and exclude them1108 partition_option=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$current_partition" | grep -vx " *#.*" | $AWK '{print $4}' | head -n1`1109 if [ "`echo "$partition_option" | grep -i noauto`" != "" ] && [ "`mount | grep -w "$partition_mountpt"`" = "" ] ; then1110 LogFile "INFO: Excluding $current_partition from mountlist (due to noauto option in fstab)"1111 continue1112 fi1113 # Detects bind partitions and exclude them1114 if [ "`echo "$partition_option" | grep -iw bind`" != "" ]; then1115 LogFile "INFO: Excluding $current_partition from mountlist (due to bind option in fstab)"1116 continue1117 fi1118 1119 1107 # set default in case we dont't find it 1120 1108 str_to_find_fmt_with=$current_partition … … 1266 1254 # set default in case we dont't find it 1267 1255 for tmpp in `tr -s '\t' ' ' < $MY_FSTAB | grep -Ev "^#" | $AWK '{print $1}'`; do 1268 if [ _"`readlink -f $tmpp`" = _" $current_partition" ]; then1256 if [ _"`readlink -f $tmpp`" = _"`readlink -f $current_partition`" ]; then 1269 1257 str_to_find_fmt_with=$tmpp 1270 1258 partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$tmpp" | grep -vx " *#.*" | $AWK '{print $2}' | head -n1` … … 1273 1261 done 1274 1262 fi 1263 fi 1264 1265 # Detects noauto partitions not mounted and exclude them 1266 partition_option=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$str_to_find_fmt_with" | grep -vx " *#.*" | $AWK '{print $4}' | head -n1` 1267 if [ "`echo "$partition_option" | grep -i noauto`" != "" ] && [ "`mount | grep -w "$partition_mountpt"`" = "" ] ; then 1268 LogFile "INFO: Excluding $current_partition from mountlist (due to noauto option in fstab)" 1269 continue 1270 fi 1271 # Detects bind partitions and exclude them 1272 if [ "`echo "$partition_option" | grep -iw bind`" != "" ]; then 1273 LogFile "INFO: Excluding $current_partition from mountlist (due to bind option in fstab)" 1274 continue 1275 1275 fi 1276 1276
Note:
See TracChangeset
for help on using the changeset viewer.