Changeset 2669 in MondoRescue for branches/2.2.9/mondo/src/restore-scripts
- Timestamp:
- Jul 2, 2010, 11:49:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/restore-scripts/mondo/grub-MR
r2619 r2669 103 103 fi 104 104 105 # For some OpenSuSE 106 res=1 107 if [ "$MNT_RESTORING" ] ; then 108 if [ -x $MNT_RESTORING/usr/sbin/grub-install.unsupported ]; then 109 echo "Now I'll use grub-install.unsupported in chroot" >> $LOGFILE 110 chroot $MNT_RESTORING /usr/sbin/grub-install.unsupported $1 2>&1 | tee -a $LOGFILE 111 res=$? 112 echo "grub-install.unsupported in chroot returned $res" >> $LOGFILE 113 fi 114 else 115 if [ -x /usr/sbin/grub-install.unsupported ]; then 116 echo "Now I'll use grub-install.unsupported locally" >> $LOGFILE 117 /usr/sbin/grub-install.unsupported $1 2>&1 | tee -a $LOGFILE 118 res=$? 119 echo "grub-install.unsupported returned $res" >> $LOGFILE 120 fi 121 fi 122 [ "$res" -eq "0" ] && exit 0 123 105 124 echo "Now I'll use grub-install" >> $LOGFILE 106 125 if [ "$MNT_RESTORING" ] ; then … … 112 131 fi 113 132 echo "grub-install returned $res" >> $LOGFILE 114 [ "$res" -eq "0" ] && exit 0115 116 # For some OpenSuSE117 echo "Now I'll use grub-install.unsupported" >> $LOGFILE118 if [ "$MNT_RESTORING" ] ; then119 chroot $MNT_RESTORING grub-install.unsupported $1 2>&1 | tee -a $LOGFILE120 res=$?121 else122 grub-install.unsupported $1 2>&1 | tee -a $LOGFILE123 res=$?124 fi125 echo "grub-install.unsupported returned $res" >> $LOGFILE126 133 [ "$res" -eq "0" ] && exit 0 127 134
Note:
See TracChangeset
for help on using the changeset viewer.