Changeset 1341 in MondoRescue for branches/stable


Ignore:
Timestamp:
Apr 25, 2007, 12:27:26 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • Remove compare-me
  • Update Logfiles for mondo scripts
  • label-partitions-as-necessary is now correct
Location:
branches/stable/mondo/src/restore-scripts/mondo
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/restore-scripts/mondo/Makefile.am

    r424 r1341  
    11restoremondodir      = $(pkgdatadir)/restore-scripts/mondo
    2 restoremondo_SCRIPTS = ISO ask-me-a-question compare-me compare-subroutine-me \
     2restoremondo_SCRIPTS = ISO ask-me-a-question compare-subroutine-me \
    33                       edit-mountlist grub-MR hack-fstab hack-grub hack-lilo hack-elilo \
    44                       ide-opt ide-opt-off label-partitions-as-necessary \
  • branches/stable/mondo/src/restore-scripts/mondo/grub-MR

    r567 r1341  
    11#!/bin/sh
    2 
    3 
     2#
     3# $Id$
     4#
    45# grub-MR ------ a rudimentary replacement for grub-install
    56#
    67#
    7 #
    8 # 2005/11/25
    9 # - try_grub_hack : do not return success when grub wrote 'Error '
    10 #
    11 # 2004/06/28
    12 # - added support for /dev/md0==GRUB
    13 #
    14 # 2004/06/27
    15 # - re-enable the call to grub-install and the 'echo' thing as a backup
    16 # - hacked the hack :) to improve MDK9.2 support
    17 # - added try_grub_hack()
    18 #
    19 # 2004/06/14
    20 # - just use grub-install.patched; nothing else
    21 #
    22 # 2004/05/05
    23 # - try EVERYTHING - grub-install, grub --batch, etc.
    24 #
    25 # 2004/04/18
    26 # - try grub --batch < /etc/grub.conf first
    27 # - if it fails, grub-install.patched instead
    28 # - if _that_ fails, fail.
    29 #
    30 # 2004/04/15
    31 # - added grub-install.patched to the mix
    32 #
    33 # 2004/04/01
    34 # - use grub-install if there's an NTFS partition on the disk
    35 #
    36 # 2004/03/31
    37 # - disabled direct call to grub
    38 #
    39 # 2004/03/28
    40 # - call grub directly if possible
    41 #
    42 # 2004/03/26
    43 # - find stage 1 if possible; more stable, reliable call to grub
    44 #
    45 # 2003/08/24
    46 # - fixed line 26 (Christian)
    47 #
    48 # 2002/11/18
    49 # - first incarnation
    50 
    51 
    52 LOGFILE=/var/log/mondo-archive.log
    53 
    548
    559Die() {
  • branches/stable/mondo/src/restore-scripts/mondo/hack-lilo

    r567 r1341  
    11#!/bin/sh
    2 
    3 
    4 LogIt() {
    5     echo "$1" >> /tmp/mondo-restore.log
    6 }
    7 
     2#
     3# $Id$
     4#
    85
    96
  • branches/stable/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r1297 r1341  
    77
    88read_partition_line() {
    9     local tmp label mountpt command format
     9    local label mountpt command format
    1010
    11     if [ "`echo "$1" | grep -E 'LABEL='`" != "" ] ; then
     11    label=`echo "$1" | awk '{print $1}' | cut -d'=' -f2`
     12    format=`echo "$1" | awk '{print $3}'`
     13
     14    if [ "`echo "$1" | grep -E 'LABEL='`" != "" ] ; then
    1215        opttun="-L"
    13     elif [ "`echo "$1" | grep -E 'UUID='`" != "" ] ; then
     16        mountpt=`awk '{print $1,$5}' $mountlist | grep " $label$" | awk '{print $1}'`
     17    elif [ "`echo "$1" | grep -E 'UUID='`" != "" ] ; then
    1418        opttun="-U"
     19        mountpt=`awk '{print $1,$6}' $mountlist | grep " $label$" | awk '{print $1}'`
    1520    else
    1621        # Nothing to do
    1722        return
    18     fi
     23    fi
    1924
    20     tmp=`echo "$1" | tr -s ' ' '\t' | cut -f1`
    21     label=`echo "$tmp" | cut -d'=' -f2`
    22     format=`echo "$1" | tr -s ' ' '\t' | cut -f3`
    23     mountpt=`grep -w " $label" $mountlist | cut -d' ' -f1`
    2425    if [ ! "$mountpt" ] ; then
    25         LogIt "Not labeling anything as $label because $mountpt is not a mountpoint"
     26        LogIt "Not labeling anything as ($label) because ($mountpt) is not a mountpoint"
    2627    elif [ ! "$label" ] ; then
    27         LogIt "Not labeling $mountpt as anything because $label is not a label"
     28        LogIt "Not labeling ($mountpt) as anything because ($label) is not a label"
    2829    else
    2930        if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
  • branches/stable/mondo/src/restore-scripts/mondo/make-me-bootable

    r911 r1341  
    11#!/bin/sh
    2 
    3 
    4 LOGFILE=/tmp/mondo-restore.log
    5 
    62
    73
  • branches/stable/mondo/src/restore-scripts/mondo/raw-MR

    r567 r1341  
    77LogIt "Restoring MBR..." 2
    88if uname -a | grep -q FreeBSD; then
    9     echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>>/tmp/mondo-restore.log
     9    echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE
    1010else
    11     dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> /tmp/mondo-restore.log
     11    dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE
    1212fi
    1313exit $?
  • branches/stable/mondo/src/restore-scripts/mondo/stabgrub-me

    r1001 r1341  
    11#!/bin/sh
    22#
    3 # stabgrub-me
    4 #
    5 # 04/08/2003
    6 # - cleaned up backup func a bit
    7 #
    8 #
    9 #
    10 # forked from stablilo-me on 2002/11/20
     3# $Id$
    114#
    125#####################################################################
    136
    14 
    15 LOGFILE=/tmp/mondo-restore.log
    167
    178QuitIfNotFound() {
  • branches/stable/mondo/src/restore-scripts/mondo/stabraw-me

    r567 r1341  
    11#!/bin/sh
    22#
    3 # stabraw-me
    4 #
    5 # forked from stablilo-me on 2002/11/21
     3# $Id$
    64#
    75#####################################################################
    86
    9 
    10 LOGFILE=/tmp/mondo-restore.log
    117
    128QuitIfNotFound() {
     
    1612    fi
    1713}
    18 
    19 
    20 
    21 
    2214
    2315LocateOldFstab() {
Note: See TracChangeset for help on using the changeset viewer.