Changeset 2671 in MondoRescue


Ignore:
Timestamp:
Jul 30, 2010, 12:23:58 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix again #412 !! by removing calls to tee which voids the return value of the previous command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/restore-scripts/mondo/grub-MR

    r2669 r2671  
    108108    if [ -x $MNT_RESTORING/usr/sbin/grub-install.unsupported ]; then
    109109        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
     110        chroot $MNT_RESTORING /usr/sbin/grub-install.unsupported $1 >> $LOGFILE 2>> $LOGFILE
    111111        res=$?
    112112        echo "grub-install.unsupported in chroot returned $res" >> $LOGFILE
     
    115115    if [ -x /usr/sbin/grub-install.unsupported ]; then
    116116        echo "Now I'll use grub-install.unsupported locally" >> $LOGFILE
    117         /usr/sbin/grub-install.unsupported $1 2>&1 | tee -a $LOGFILE
     117        /usr/sbin/grub-install.unsupported $1 >> $LOGFILE 2>> $LOGFILE
    118118        res=$?
    119119        echo "grub-install.unsupported returned $res" >> $LOGFILE
     
    124124echo "Now I'll use grub-install" >> $LOGFILE
    125125if [ "$MNT_RESTORING" ] ; then
    126     chroot $MNT_RESTORING grub-install $1 2>&1 | tee -a $LOGFILE
     126    chroot $MNT_RESTORING grub-install $1 >> $LOGFILE 2>> $LOGFILE
    127127    res=$?
    128128else
    129     grub-install $1 2>&1 | tee -a $LOGFILE
     129    grub-install $1 >> $LOGFILE 2>> $LOGFILE
    130130    res=$?
    131131fi
     
    179179echo "Now I'll use grub-install.patched" >> $LOGFILE
    180180cp -f `which grub-install.patched` /mnt/RESTORING/sbin
    181 chroot /mnt/RESTORING grub-install.patched $1 2>&1 | tee -a $LOGFILE
     181chroot /mnt/RESTORING grub-install.patched $1 >> $LOGFILE 2>> $LOGFILE
    182182res=$?
    183183echo "grub-install.patched returned $res" >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.