Changeset 2833 in MondoRescue for branches/2.2.8/mondo/src/restore-scripts
- Timestamp:
- Jun 19, 2011, 2:13:48 AM (13 years ago)
- Location:
- branches/2.2.8/mondo/src/restore-scripts/mondo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/restore-scripts/mondo/Makefile.am
r2788 r2833 4 4 make-me-bootable mount-me mount-subroutine-me raw-MR \ 5 5 stabgrub-me stablilo-me stabelilo-me \ 6 stabraw-me unmount-me unmount-subroutine-me \6 stabraw-me unmount-me unmount-subroutine-me 7 7 format-and-kludge-vfat -
branches/2.2.8/mondo/src/restore-scripts/mondo/format-and-kludge-vfat
r2815 r2833 63 63 64 64 device=$1 65 echo $device | grep -Eq "/cciss/|/mapper/|/ida/" 66 if [ $? -eq "0" ]; then 67 drive=`echo $device | sed s/[0-9p]*[0-9]//` 68 else 69 drive=`echo $drive | sed s/[0-9]*[0-9]//` 70 fi 65 drive=`echo $device | sed s/[0-9]*[0-9]//` 71 66 partition=`echo $device | sed s\%$drive\%\%` 72 67 -
branches/2.2.8/mondo/src/restore-scripts/mondo/grub-MR
r2814 r2833 115 115 partno=`basename $bootpart | cut -d'p' -f2` 116 116 elif echo $bootpart | grep "/mapper/mpath" > /dev/null ; then 117 partno=`basename $bootpart | cut -d'p' -f 3`117 partno=`basename $bootpart | cut -d'p' -f2` 118 118 else 119 119 partno=`basename $bootpart | sed s/[a-z]*//` … … 128 128 line=`grep $base /proc/mdstat | head -n1` 129 129 echo "mbrpart was $mbrpart" 130 mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2` 130 mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' \ 131 | cut -d' ' -f2` 131 132 echo "mbrpart is $mbrpart" 132 133 partno="0"; # cheating - FIXME -
branches/2.2.8/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r2801 r2833 61 61 noof_blank_lines=0 62 62 read line 63 # We end after 50 empty lines, which hopefully means we reach the end of the file 64 while [ "$noof_blank_lines" -le "50" ] ; do 63 while [ "$line" != "" ] && [ "$noof_blank_lines" -le "5" ] ; do 65 64 if [ "$line" = "" ] ; then 66 65 noof_blank_lines=$(($noof_blank_lines+1))
Note:
See TracChangeset
for help on using the changeset viewer.