Changeset 1761 in MondoRescue


Ignore:
Timestamp:
Nov 1, 2007, 8:27:45 PM (16 years ago)
Author:
Bruno Cornec
Message:

Adds preliminary Hardware support to mindi (Proliant SSSTK)
Not tested yet, just coded, and saved in SVN as a backup :-)

Location:
branches/2.2.5
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/README.proliant

    r1525 r1761  
     1$Id$
     2
    13If you're making a backup with mondoarchive on a Proliant system that you want to be able to restore using the Virtual Media function of Proliants, then you have to ensure that the required drivers will be available at restore time.
    24In order to ensure that, you may want to do on 2.2.x versions:
  • branches/2.2.5/mindi/install.sh

    r1759 r1761  
    7777install -m 755 analyze-my-lvm $locallib/mindi
    7878install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi
    79 install -m 644 deplist.txt udev.files $conf
     79install -m 644 deplist.txt udev.files proliant.files $conf
    8080
    8181# Substitute variables for mindi
    8282sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" mindi > $local/sbin/mindi
     83sed -e "s~= "YYY"~= "$subconf"~" mindi-bkphw > $local/sbin/mindi-bkphw
    8384chmod 755 $local/sbin/mindi
    8485install -m 755 parted2fdisk.pl $local/sbin
  • branches/2.2.5/mindi/mindi

    r1760 r1761  
    28032803        fi
    28042804    fi
     2805    # Management of potential HW info (Proliant only at the moment)
     2806    mindi-bkphw $CACHE_LOC $MINDI_CONF | tee -a $LOGFILE
     2807    if [ -d $CACHE_LOC/bkphw ]; then
     2808        LogIt "Hardware Information found and saved ..."
     2809        cp -rp $CACHE_LOC/bkphw .
     2810        lis=`grep -Ev '^#' $CACHE_LOC/tools.files`
     2811        LocateDeps $lis > $MINDI_TMP/tools.lis
     2812        cp --parents -Rdf $lis `sort -u $MINDI_TMP/tools.lis` .
     2813        if [ -f $CACHE_LOC/mindi-rsthw ]; then
     2814            mv -f $CACHE_LOC/mindi-rsthw .
     2815            chmod 755 ./mindi-rsthw
     2816        fi
     2817        rm -f $MINDI_TMP/tools.lis $CACHE_LOC/tools.files
     2818    fi
     2819
    28052820    for w in cdrom floppy groovy-stuff ; do
    28062821        mkdir -p mnt/$w
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1759 r1761  
    291291}
    292292
    293 
     293RstHW() {
     294
     295    # Restore the HW configuration if available (NOT by default)
     296    answer="NO"
     297
     298    if [ -x ./mindi-rsthw ]; then
     299        grep -q RESTORE /proc/cmdline
     300        if [ "$?" -ne 0 ]; then
     301            clear
     302            echo "*********************************************************************"
     303            echo "Do you want to restore the HW configuration of the original machine ?"
     304            echo "(This may dammage your hardware so be sure to check twice before saying yes)"
     305            echo "*********************************************************************"
     306            echo "Please confirm by typing YES exactly as written here (NO by default)"
     307            echo -n "--> "
     308            read answer
     309        else
     310            answer="YES"
     311        fi
     312        if [ "$answer" -eq "YES" ] ; then
     313            ./mindi-rsthw
     314        fi
     315    fi
     316}
    294317
    295318
     
    529552
    530553EnableCcissIfAppropriate
     554RstHW
    531555#-------------------------------
    532556#WHOLIVESINAPINEAPPLEUNDERTHESEA#;# --- don't touch this :)
  • branches/2.2.5/pbconf/mindi/deb/mindi.docs

    r1712 r1761  
    55README.proliant
    66README.pxe
     7README.bkphw
    78svn.log
  • branches/2.2.5/pbconf/mindi/rpm/mindi.spec

    r1682 r1761  
    5050%defattr(-,root,root)
    5151%config(noreplace) %{_sysconfdir}/%{name}
    52 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
     52%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox README.proliant README.bkphw svn.log
    5353%{_mandir}/man8/*
    5454%{_libdir}/%{name}
Note: See TracChangeset for help on using the changeset viewer.