- Timestamp:
- Apr 7, 2010, 2:17:08 PM (15 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/deplist.d/base.conf
r2582 r2615 55 55 /usr/bin/less 56 56 /sbin/ldconfig 57 /usr/bin/tee 57 58 58 59 # For swap uuid support, ia64 and probably then more in the future -
branches/2.2.9/mondo/src/restore-scripts/mondo/grub-MR
r2449 r2615 69 69 70 70 echo -en "\ 71 device (hd$driveno) $mbr part\n\71 device (hd$driveno) $mbrdev\n\ 72 72 $extraline\n\ 73 73 root (hd$driveno,$partno)\n\ … … 77 77 log_file=/tmp/grub.output 78 78 if [ "$MNT_RESTORING" ] ; then 79 chroot /mnt/RESTORING grub --batch < /tmp/feed.txt > $log_file79 chroot $MNT_RESTORING grub --batch < /tmp/feed.txt > $log_file 80 80 else 81 81 grub --batch < /tmp/feed.txt > $log_file … … 104 104 105 105 echo "Now I'll use grub-install" >> $LOGFILE 106 chroot /mnt/RESTORING grub-install $1 >> $LOGFILE 107 res=$? 106 if [ "$MNT_RESTORING" ] ; then 107 chroot $MNT_RESTORING grub-install $1 >> $LOGFILE 108 res=$? 109 else 110 grub-install $1 >> $LOGFILE 111 res=$? 112 fi 108 113 echo "grub-install returned $res" >> $LOGFILE 109 114 [ "$res" -eq "0" ] && exit 0 110 115 116 # For some OpenSuSE 117 echo "Now I'll use grub-install.unsupported" >> $LOGFILE 118 if [ "$MNT_RESTORING" ] ; then 119 chroot $MNT_RESTORING grub-install.unsupported $1 >> $LOGFILE 120 res=$? 121 else 122 grub-install.unsupported $1 >> $LOGFILE 123 res=$? 124 fi 125 echo "grub-install.unsupported returned $res" >> $LOGFILE 126 [ "$res" -eq "0" ] && exit 0 127 111 128 echo "Trying a hack" >> $LOGFILE 112 FindBootPart $1 $2 113 mbr part=$1129 FindBootPart $1 $2 2>&1 | tee -a $LOGFILE 130 mbrdev=`echo $1 | sed 's/[^0-9]*\([0-9]*\)$/\1/'` 114 131 if echo $bootpart | grep "/cciss/" > /dev/null ; then 115 132 partno=`basename $bootpart | cut -d'p' -f2` … … 117 134 partno=`basename $bootpart | cut -d'p' -f3` 118 135 else 119 partno=`basename $bootpart | sed s/[a-z]*//`136 partno=`basename $bootpart | sed 's/[a-z]*//'` 120 137 fi 121 138 if [ ! "$partno" ] ; then … … 125 142 fi 126 143 if echo $bootpart | grep "/md" > /dev/null ; then 144 # FIXME: Why this if not used later 127 145 base=`basename $bootpart` 128 146 line=`grep $base /proc/mdstat | head -n1` 129 echo "mbr part was $mbrpart"130 mbr part=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2`131 echo "mbr part is $mbrpart"147 echo "mbrdev was $mbrdev" 2>&1 | tee -a $LOGFILE 148 mbrdev=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2` 149 echo "mbrdev is $mbrdev" 2>&1 | tee -a $LOGFILE 132 150 partno="0"; # cheating - FIXME 133 151 fi 134 echo ".............Cool." 152 echo ".............Cool." 2>&1 | tee -a $LOGFILE 135 153 136 154 grub=`FindPathOfRESTExe grub`
Note:
See TracChangeset
for help on using the changeset viewer.