Changeset 3699 in MondoRescue for branches/3.3/mondo/src/restore-scripts
- Timestamp:
- Mar 31, 2018, 11:30:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/restore-scripts/mondo/mr-grub
r3698 r3699 141 141 devfile="/boot/grub2/device.map" 142 142 fi 143 echo "Content of $devfile" 144 echo "-------------------" 143 echo "Content of $devfile" >> $LOGFILE 144 echo "-------------------" >> $LOGFILE 145 145 if [ -f "$devfile" ]; then 146 cat $devfile 147 else 148 echo "No file $devfile" 146 cat $devfile >> $LOGFILE 147 else 148 echo "No file $devfile" >> $LOGFILE 149 149 fi 150 150 151 151 echo "Now I'll use grub2-install" >> $LOGFILE 152 152 if [ "$MNT_RESTORING" ] ; then 153 echo "Launching: chroot $MNT_RESTORING grub2-install --force $1" >> $LOGFILE 153 154 chroot $MNT_RESTORING grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE 154 155 res=$? 155 156 else 157 echo "Launching: grub2-install --force $1" >> $LOGFILE 156 158 grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE 157 159 res=$?
Note:
See TracChangeset
for help on using the changeset viewer.