Ignore:
Timestamp:
Mar 24, 2016, 5:48:03 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Rename all mondorestore scripts with the mr- prefix and adapt callers
  • Place these scripts in /usr/bin on the restore media
  • Fix a mindi bug where these scripts were not copied anymore with previous modifications around removal of cd
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/restore-scripts/mondo/mr-grub

    r3541 r3542  
    33# $Id$
    44#
    5 # grub-MR ------ a rudimentary replacement for grub-install
     5# mr-grub ------ a rudimentary replacement for grub-install
    66#
    77#
     
    9393
    9494if [ "$#" -ne "2" ] ; then
    95     Die "grub-MR <boot drive> <mountlist filename>; e.g. grub-MR /dev/hda /tmp/mountlist.txt"
     95    Die "mr-grub <boot drive> <mountlist filename>; e.g. mr-grub /dev/hda /tmp/mountlist.txt"
    9696fi
    9797[ ! -f "$2" ] && Die "mountlist file not found"
     
    191191# ---------------------------------
    192192
    193 echo "Now I'll use grub-install.patched" >> $LOGFILE
    194 cp -f `which grub-install.patched` /mnt/RESTORING/sbin
    195 chroot /mnt/RESTORING grub-install.patched $1 >> $LOGFILE 2>> $LOGFILE
     193echo "Now I'll use mr-grub-install.patched" >> $LOGFILE
     194cp -f `which mr-grub-install.patched` /mnt/RESTORING/sbin
     195chroot /mnt/RESTORING mr-grub-install.patched $1 >> $LOGFILE 2>> $LOGFILE
    196196res=$?
    197 echo "grub-install.patched returned $res" >> $LOGFILE
     197echo "mr-grub-install.patched returned $res" >> $LOGFILE
    198198[ "$res" -eq "0" ] && exit 0
    199199
     
    220220[ "$res" -eq "0" ] && exit 0
    221221
    222 echo "grub-MR returned res=$res" >> $LOGFILE
     222echo "mr-grub returned res=$res" >> $LOGFILE
    223223
    224224exit $res
Note: See TracChangeset for help on using the changeset viewer.