Changeset 139 in MondoRescue
- Timestamp:
- Nov 25, 2005, 11:40:52 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/restore-scripts/mondo/grub-MR
r30 r139 5 5 # 6 6 # 7 # 8 # 2005/11/25 9 # - try_grub_hack : do not return success when grub wrote 'Error ' 7 10 # 8 11 # 2004/06/28 … … 118 121 quit \n" > /tmp/feed.txt 119 122 cat /tmp/feed.txt 123 log_file=/tmp/grub.output 120 124 if [ "$MNT_RESTORING" ] ; then 121 chroot /mnt/RESTORING grub --batch < /tmp/feed.txt 125 chroot /mnt/RESTORING grub --batch < /tmp/feed.txt > $log_file 122 126 else 123 grub --batch < /tmp/feed.txt 127 grub --batch < /tmp/feed.txt > $log_file 124 128 fi 125 return $? 129 cat $log_file 130 if grep "Error [0-9]*: " $log_file >/dev/null; then 131 return 1 132 else 133 return 0 134 fi 126 135 } 127 136
Note:
See TracChangeset
for help on using the changeset viewer.