Changeset 980 in MondoRescue
- Timestamp:
- Nov 26, 2006, 10:04:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r976 r980 1227 1227 if [ "`echo "$current_partition" | /bin/grep -i "LABEL="`" != "" ]; then 1228 1228 str_to_find_fmt_with=$current_partition 1229 redhat_label=`echo "$current_partition" | /bin/cut -d'=' -f2`1229 redhat_label=`echo "$current_partition" | cut -d'=' -f2` 1230 1230 actual_dev="" 1231 1231 … … 1237 1237 # 2nd try : blkid, the good way for all LABEL except swap 1238 1238 if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then 1239 actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | /bin/cut -d':' -f1`1239 actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | cut -d':' -f1` 1240 1240 # For LVM FS it will give a /dev/dm-# which should then be converted 1241 1241 if [ $LVM = "v2" ] && [ "`echo $actual_dev | grep '/dev/dm'`" ]; then … … 1256 1256 # For LVM gives a /dev/mapper entry 1257 1257 if [ "x$actual_dev" = "x" ]; then 1258 actual_dev=`/bin/mount -l | /bin/grep "\[$redhat_label\]" | /bin/cut -d' ' -f1`1258 actual_dev=`/bin/mount -l | /bin/grep "\[$redhat_label\]" | cut -d' ' -f1` 1259 1259 fi 1260 1260 … … 1292 1292 if [ "`echo "$current_partition" | /bin/grep -i "UUID="`" != "" ]; then 1293 1293 str_to_find_fmt_with=$current_partition 1294 uuid=`echo "$current_partition" | /bin/cut -d'=' -f2`1294 uuid=`echo "$current_partition" | cut -d'=' -f2` 1295 1295 actual_dev="" 1296 1296 … … 1302 1302 # 2nd try : blkid, the good way for all LABEL except swap 1303 1303 if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then 1304 actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | /bin/cut -d':' -f1`1304 actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | cut -d':' -f1` 1305 1305 # For LVM FS it will give a /dev/dm-# which should then be converted 1306 1306 if [ $LVM = "v2" ] && [ "`echo $actual_dev | grep '/dev/dm'`" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.