Changeset 2648 in MondoRescue for devel


Ignore:
Timestamp:
Jun 13, 2010, 12:36:32 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3873@localhost: bruno | 2010-06-10 12:28:15 +0200

  • Big renaming in progress mindi => mrmini
Location:
devel
Files:
3 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • devel/design

    r2647 r2648  
    1414mrmini: tool to create MondoRescue mini distribution
    1515
    16 Mindi design:
     16mrmini design:
    1717
    1818Goal is to create a bootable env contaning everything suited for DR/Cloning from the running system
  • devel/mr/etc/mondorescue.conf

    r2541 r2648  
    77# DO NOT CHANGE THAT FILE IN ANYWAY AS ITS MD5 SUM IS USED AS A CHECK !!
    88# Anyway changing some values in your own configuration file may render
    9 # mindi instable or cause failures. Use with care.
     9# mrmini instable or cause failures. Use with care.
    1010
    1111# Temporary directory
    1212# Under it a temporary directory will be created to host all
    13 # temporary files for mindi. That subdirectory is erased at the end of mindi
     13# temporary files for mrmini. That subdirectory is erased at the end of mrmini
    1414#
    1515mr_tmp_dir default = /tmp
  • devel/mr/lib/MondoRescue/LVM.pm

    r2647 r2648  
    11#!/usr/bin/perl -w
    22#
    3 # Mindi subroutines related to LVM brought by the MondoRescue project
     3# Subroutines related to LVM brought by the MondoRescue project
    44#
    55# $Id$
  • devel/mr/post-install.sh

    r2540 r2648  
    3838
    3939echo "Copying files ..."
    40 #cp -af rootfs $sublocallib/mindi
    41 #chmod 755 $sublocallib/mindi/rootfs/sbin/*
    42 #install -m 644 msg-txt dev.tgz $sublocallib/mindi
    43 #install -m 644 deplist.txt udev.files proliant.files $conf
    44 
    4540cp etc/PBPROJ.conf $conf
    4641cat > $HEAD$PERLDIR/MondoRescue/DynConf.pm << EOF
  • devel/mr/sbin/mranalyze-lvm

    r2558 r2648  
    2525=head1 NAME
    2626
    27 mranalyze-lvm - A Mindi Tool to analyze the LVM configuration and store it
     27mranalyze-lvm - A MondoRescue Tool to analyze the LVM configuration and store it
    2828
    2929=head1 DESCRIPTION
     
    123123# Global variables
    124124#
    125 my $MINDI_VERSION = "PBVER-rPBREV";
    126 my $MINDI_PREFIX = "PBPREFIX";
    127 my $MINDI_CONF = "PBCONF";
    128 my $MINDI_LIB = "PBLIB";
    129 my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
     125my $MRMINI_VERSION = "PBVER-rPBREV";
     126my $MRMINI_PREFIX = "PBPREFIX";
     127my $MRMINI_CONF = "PBCONF";
     128my $MRMINI_LIB = "PBLIB";
     129my $MRMINI_SBIN = "$MRMINI_PREFIX/sbin";
    130130
    131131# Init
  • devel/mr/sbin/mrcheck-lvm

    r2541 r2648  
    2525=head1 NAME
    2626
    27 mrcheck-lvm - A Mindi Tool to check the LVM basic info
     27mrcheck-lvm - A MondoRescue Tool to check the LVM basic info
    2828
    2929=head1 DESCRIPTION
     
    123123# Global variables
    124124#
    125 my $MINDI_VERSION = "PBVER-rPBREV";
    126 my $MINDI_PREFIX = "PBPREFIX";
    127 my $MINDI_CONF = "PBCONF";
    128 my $MINDI_LIB = "PBLIB";
    129 my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
     125my $MRMINI_VERSION = "PBVER-rPBREV";
     126my $MRMINI_PREFIX = "PBPREFIX";
     127my $MRMINI_CONF = "PBCONF";
     128my $MRMINI_LIB = "PBLIB";
     129my $MRMINI_SBIN = "$MRMINI_PREFIX/sbin";
    130130
    131131# Init
  • devel/mrmini/INSTALL

    r2149 r2648  
    1 MINDI LINUX                   INSTALL                               10/21/2002
     1MRMINI Installation instructions
    22
    3 To install, please download the tarball to /tmp and then type:-
    4 # cd /tmp
    5 # tar -zxvf mindi-0.6x.tgz
    6 # cd mindi-0.6x
    7 # ./install.sh
     3Run:
    84
    9 Or install the RPM:-
    10 # rpm -i mindi-0.7x-y.i386.rpm
    11 
    12 Replace 'x' with the last digit of the latest version (e.g. '0' of 0.70).
    13 Replace 'y' with the revision# (e.g. '1' of '0.70-1.i386.rpm').
    14 
    15 To run the program, type:-
    16 # mindi
    17 
    18 Mindi will:-
    19 - locate your kernel and modules
    20 - put together a package of all the tools you are likely to need
    21 - generate some floppy disk images
    22 - offer to write the images to disks for you
    23 
    24 To add files to the dependency list, you may edit
    25 /etc/deplist.txt before running Mindi.
    26 
    27 Problems? Questions? Comments? E-mail the mailing list. :) If you are reporting
    28 a bug or a problem then please e-mail a copy of /var/log/mindi.log to the
    29 mailing list or I shall be unable to help. PLEASE read the FAQ, the manual
    30 and the mailing list before you e-mail me. Thanks.
    31 
    32                                                              Hugo Rabson
    33                                                          <hugo@firstlinux.net>
    34 
     5perl Makefile.PL
     6make
     7make install
  • devel/mrmini/Makefile.PL

    r2646 r2648  
    1414            #Template                         => 0,
    1515    },    # e.g., Module::Name => 1.1
    16     #ABSTRACT_FROM => 'sbin/mrmindi',   # retrieve abstract from module
     16    #ABSTRACT_FROM => 'sbin/mrmini',   # retrieve abstract from module
    1717    AUTHOR        => 'Bruno Cornec <bruno#mondorescue.org>',
    18     EXE_FILES     => [ qw( sbin/mrmindi sbin/mrprepare-lvm ) ],
     18    EXE_FILES     => [ qw( sbin/mrmini sbin/mrprepare-lvm ) ],
    1919    MAN1PODS      => {
    20             'sbin/mrmindi' => '$(INST_MAN1DIR)/mrmindi.$(MAN1EXT)',
     20            'sbin/mrmini' => '$(INST_MAN1DIR)/mrmini.$(MAN1EXT)',
    2121            'sbin/mrprepare-lvm' => '$(INST_MAN1DIR)/mrprepare-lvm.$(MAN1EXT)',
    2222                    },
    2323    #MAN3PODS      => {
    24             #'lib/MondoRescue/Mindi/LVM.pm' => '$(INST_MAN3DIR)/MondoRescue::Mindi::LVM.$(MAN3EXT)',
     24            #'lib/MondoRescue/Mini/LVM.pm' => '$(INST_MAN3DIR)/MondoRescue::Mini::LVM.$(MAN3EXT)',
    2525            #},
    2626);
  • devel/mrmini/README

    r2149 r2648  
    22============
    33
    4 MondoRescue is the premier GPL disaster recovery suite for Linux/FreeBSD.
     4MondoRescue is a GPL disaster recovery and cloning suite for Linux/FreeBSD.
    55
    6 This is the Mindi part of MondoRescue. Mindi is responsible for creating boot
     6This is the mrmini part of MondoRescue. mrmini is responsible for creating boot
    77media used by MondoRescue. The part of MondoReccue responsible carrying out the
    8 actual backups and restores is called Mondo and available as a separate
     8actual backups and restores is called mrarchive and available as a separate
    99package.
    10 
    11 MondoRescue is reliable. It backs up your server or workstation to tape, CD-R,
    12 CD-RW, DVD, NFS or hard disk partition. In the event of catastrophic data loss,
    13 you will be able to restore all of your data [or as much as you want], from
    14 bare metal if necessary. MondoRescue is in use by numerous blue-chip
    15 enterprises and large organizations, dozens of smaller companies, and tens of
    16 thousands of users.
    17 
    18 MondoRescue is comprehensive. MondoRescue supports LVM, RAID, ext2, ext3, ext4,
    19 JFS, XFS, ReiserFS, VFAT, and can support additional file systems easily. It
    20 supports adjustments in disk geometry, including migration from non-RAID to
    21 RAID. MondoRescue runs on all major Linux distributions and FreeBSD and is
    22 getting better all the time. You may even use it to backup non-Linux
    23 partitions, such as NTFS.
    24 
    2510
    2611Installation
     
    3015ftp://ftp.mondorescue.org
    3116
    32 Please see file 'INSTALL' for instructions about how to build and install
    33 Mindi. Note that your distribution may already contain MondoRescue, so all you
    34 may have to do is install the mindi package and you are all set.
     17Please see file 'INSTALL' for instructions about how to build and install mrmini.
    3518
    3619
     
    4023Various documentation is available on the MondoRescue website at
    4124http://www.mondorescue.org/docs/docs.html. This documentation may also be
    42 available locally under /usr/share/doc/mondo-<version> or similar (or under
     25available locally under /usr/share/doc/mrmini-<version> or similar (or under
    4326/usr/local).
    4427
    45 Further to that, there is a manpage for mindi(8).
     28Further to that, there is a manpage for mrmini(8).
    4629
    4730
  • devel/mrmini/README.bkphw

    r2149 r2648  
    1 README for mondo/mindi usage with tools to backup Hardware configuration
     1README for mondo/mrmini usage with tools to backup Hardware configuration
    22
    33Some Hardware Manufacturers such as HP provide tools to store the Hardware configuration of their systems, such as the BIOS setup, the RAID setup, ...
    44
    5 Mindi has a script able to store the Hardware configuration and those parameters may be restored before launching mondorestore during the boot phase computed by mindi, in order to re-setup the machine as the original one.
     5mrmini has a script able to store the Hardware configuration and those parameters may be restored before launching mondorestore during the boot phase computed by mrmini, in order to re-setup the machine as the original one.
    66
    77For the moment, only HP Proliant systems are supported. If you have tools to allow support for other type of machines, feel free to contribute patches to that script.
    88
    9 If you have a Proliant system you first need to get the Smart Start Scripting Toolkit. Due to licenses issues, mindi cannot provide those tools itself. You need to get them from http://www.hp.com/servers/sstoolkit
     9If you have a Proliant system you first need to get the Smart Start Scripting Toolkit. Due to licenses issues, mrmini cannot provide those tools itself. You need to get them from http://www.hp.com/servers/sstoolkit
    1010
    11 Mindi expects to find those tools under /usr/local/bin as described in the deplist.d/proliant.conf configuration file. Here are the steps to set it up correctly:
     11mrmini expects to find those tools under /usr/local/bin as described in the deplist.d/proliant.conf configuration file. Here are the steps to set it up correctly:
    1212
    1313Older URL:
     
    3030
    3131You're now ready to check your configuration by running:
    32 mindi-bkphw /var/cache/mindi /etc/mindi
     32mrmini-bkphw /var/cache/mrmini /etc/mrmini
    3333[First parameter is the directory where files will be generated,
    3434 Second parameter is the directory of the file proliant.files is located]
  • devel/mrmini/README.ia64

    r2149 r2648  
    1 README for mondo/mindi usage on ia64
     1$Id$
    22
    3 Linux distributions on ia64 uses a different file table format than on i386, called GPT instead of MBR. The fdisk command used by mindi/mondo to determine all aspects related to the disc hasn't been adapted yet to handle GPT. Only the parted command is able to do it.
     3README for mondo/mrmini usage on ia64
    44
    5 So a perl script called parted2fdisk.pl was written that will take as input all the order that mindi/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs, parted2fdisk is a link to fdisk.
     5Linux distributions on ia64 uses a different file table format than on i386, called GPT instead of MBR. The fdisk command used by mrmini/mondo to determine all aspects related to the disc hasn't been adapted yet to handle GPT. Only the parted command is able to do it.
    66
    7 Thus mindi/mondo launched by root will pass all their call to parted2fdisk instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work.
     7So a perl script called parted2fdisk.pl was written that will take as input all the order that mrmini/mondo pass to fdisk, translate them to be given to parted and print the result in fdisk format. So this is a filter allowing fdisk replacement. It's only used on ia64. On other archs, parted2fdisk is a link to fdisk.
     8
     9Thus mrmini/mondo launched by root will pass all their call to parted2fdisk instead of the real fdisk, and be able to support the GPT format. It will call fdisk and parted for its work.
    810
    911To get it on the system to restore, please do the following as root:
     
    1921Note that parted2fdisk.pl supports currently only the -l and -s options as well as the commands p,n,d,w,t,a,q
    2022
    21 On Itanium systems you won't generally find an installed isolinux.bin file which is required by mindi to create the bootable images. You'll generally have to take an i386 package for your distribution and install it on your itanium system so that you provide the required missing file.
     23On Itanium systems you won't generally find an installed isolinux.bin file which is required by mrmini to create the bootable images. You'll generally have to take an i386 package for your distribution and install it on your itanium system so that you provide the required missing file.
    2224
    2325On SLES 10, fdisk is nor provided anymore. You'll have to rebuild the util-linux package by desactivating fdisk removal in the spec file.
  • devel/mrmini/README.pxe

    r2149 r2648  
    11$Id$
    22
    3 README for mondo/mindi usage with PXE
     3README for mondo/mrmini usage with PXE
    44
    55mondorescue now supports the possibility to deploy mondo-images using the Pre eXecution Environment (PXE) standard.
  • devel/mrmini/etc/mindi.conf

    r2540 r2648  
    77# DO NOT CHANGE THAT FILE IN ANYWAY AS ITS MD5 SUM IS USED AS A CHECK !!
    88# Anyway changing some values in your own configuration file may render
    9 # mindi instable or cause failures. Use with care.
     9# mrmini instable or cause failures. Use with care.
    1010
    1111#
    1212# Extra space for Ram disk
    1313#
    14 mr_extra_space mindi =  24576
     14mr_extra_space mrmini =  24576
    1515
    1616#
    1717# Size of the boot image
    1818#
    19 mr_boot_size mindi =  16384
     19mr_boot_size mrmini =  16384
    2020
    2121#
    22 # deplist file name (stored in $MINDI_CONF)
     22# deplist file name (stored in $MRMINI_CONF)
    2323#
    24 mr_deplist_file mindi = deplist.txt
     24mr_deplist_file mrmini = deplist.txt
    2525
    2626#
    27 # Write mindi CD (true|false) ?
     27# Write mrmini CD (true|false) ?
    2828#
    29 mr_boot_cd mindi = true
     29mr_boot_cd mrmini = true
    3030
    3131#
    32 # Write mindi USB (true|false) ?
     32# Write mrmini USB (true|false) ?
    3333#
    34 mr_boot_usb mindi = false
     34mr_boot_usb mrmini = false
    3535
    3636#
    37 # Write mindi Tape (true|false) ?
     37# Write mrmini Tape (true|false) ?
    3838#
    39 mr_boot_tape mindi = false
     39mr_boot_tape mrmini = false
    4040
    4141#
     
    4545# what it needs to create it rescue media
    4646#
    47 mr_cache_dir mindi = /var/cache/mindi
     47mr_cache_dir mrmini = /var/cache/mrmini
    4848mr_cache_dir mondoarchive = /var/cache/mondo
    4949
     
    6060#
    6161# Additional Boot Parameters
    62 # You may want to remove acpi=off if you're unable to reboot on mindi's CD
     62# You may want to remove acpi=off if you're unable to reboot on mrmini's CD
    6363# You may want to add ramdisk_size=1024 if on Fedora Core 5/6
    6464#
    65 mr_boot_params mindi = acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier mindi = off
     65mr_boot_params mrmini = acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier
    6666
    6767
     
    6969#
    7070mr_kernel default = NATIVE
    71 #mr_kernel mindi = /boot/vmlinuz.special
     71#mr_kernel mrmini = /boot/vmlinuz.special
    7272
    7373#
    74 # Modules supported by mindi and required at boot time
     74# Modules supported by mrmini and required at boot time
    7575#
    76 mr_scsi_mods mindi = 3w-xxxx 3w_xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs
    77 mr_ide_mods mindi = ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv cmd64x
    78 mr_usb_mods mindi = usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid
    79 mr_pcmcia_mods mindi = pcmcia_core ds yenta_socket
    80 mr_cdrom_mods mindi = cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate
    81 mr_tape_mods mindi = ht st osst ide-tape ide_tape
    82 mr_floppy_mods mindi = ide-floppy floppy
    83 mr_net_mods mindi = sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet
    84 mr_extra_mods mindi = vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache
     76mr_scsi_mods mrmini = 3w-xxxx 3w_xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs
     77mr_ide_mods mrmini = ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv cmd64x
     78mr_usb_mods mrmini = usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid
     79mr_pcmcia_mods mrmini = pcmcia_core ds yenta_socket
     80mr_cdrom_mods mrmini = cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate
     81mr_tape_mods mrmini = ht st osst ide-tape ide_tape
     82mr_floppy_mods mrmini = ide-floppy floppy
     83mr_net_mods mrmini = sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet
     84mr_extra_mods mrmini = vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache
    8585
    8686# Additional modules to support
    8787# (white space separated list of modules)
    8888#
    89 mr_force_mods mindi =
    90 mr deny_mods mindi =
     89mr_force_mods mrmini =
     90mr deny_mods mrmini =
    9191
    9292#
     
    9898# Location of the logfile
    9999#
    100 mr_log_file mindi = /var/log/mindi.log
     100mr_log_file mrmini = /var/log/mrmini.log
    101101mr_log_file mondoarchive = /var/log/mondoarchive.log
    102102mr_log_file mondorestore = /var/log/mondorestore.log
     
    105105# Interactive mode (true|false)
    106106#
    107 mr_interactive mindi = true
     107mr_interactive mrmini = true
    108108
    109109#
    110110# Boot message shown during media boot
    111111#
    112 mr_boot_msg mindi = \
     112mr_boot_msg mrmini = \
    113113To format and restore all files automatically, type 'nuke' <enter>.\n\
    114114To restore some/all files interactively, type 'interactive' <enter>.\n\
  • devel/mrmini/post-install.sh

    r2540 r2648  
    2929sublocallib="$local/lib/PBPKG"
    3030
    31 MINDIVER=PBVER
    32 MINDIREV=PBREV
     31MRMINIVER=PBVER
     32MRMINIREV=PBREV
    3333ARCH=`/bin/uname -m`
    34 echo "PBPKG ${MINDIVER}-r${MINDIREV} will be installed under $local"
     34echo "PBPKG ${MRMINIVER}-r${MRMINIREV} will be installed under $local"
    3535
    3636echo "Creating target directories ..."
     
    4444#install -m 644 deplist.txt udev.files proliant.files $conf
    4545
    46 # Substitute variables for mindi
    47 sed -i -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" $local/bin/PBPKG
    48 #sed -i -e "s~= "YYY"~= "$subconf"~" $local/bin/mindi-bkphw
     46# Substitute variables for mrmini
     47sed -i -e "s~^MRMINI_PREFIX=XXX~MRMINI_PREFIX=$sublocal~" -e "s~^MRMINI_CONF=YYY~MRMINI_CONF=$subconf~" -e "s~^MRMINI_LIB=LLL~MRMINI_LIB=$sublocallib~" $local/bin/PBPKG
     48#sed -i -e "s~= "YYY"~= "$subconf"~" $local/bin/mrmini-bkphw
    4949
    50 if [ "$PKGBUILDMINDI" != "true" ]; then
     50if [ "$PKGBUILDMRMINI" != "true" ]; then
    5151    chown -R root:root $sublocallib $conf
    5252fi
  • devel/mrmini/sbin/mindi-bkphw

    r2466 r2648  
    3333
    3434mkdir $bkpdir,0755 if (! -d $bkpdir) ;
    35 open(SYSTEM,"$dmidecode->{$pbproj} -s 'system-product-name' 2> /dev/null |") || die "You need a functional $dmidecode->{$pbproj} for mindi hardware support";
     35open(SYSTEM,"$dmidecode->{$pbproj} -s 'system-product-name' 2> /dev/null |") || die "You need a functional $dmidecode->{$pbproj} for mrmini hardware support";
    3636my $productname = <SYSTEM>;
    3737close(SYSTEM);
     
    4242if ($productname =~ /proliant/i) {
    4343    print "Detected a $productname. Nice. Continue to support my job :-)\n";
    44     print "Activating Proliant support for mindi\n";
     44    print "Activating Proliant support for mrmini\n";
    4545    open(PROLIANT,"$confdir/proliant.files") || die "Unable to open $confdir/proliant.files";
    4646    open(TOOLS,"> $bkpdir/../tools.files") || die "Unable to open $bkpdir/../tools.files";
    47     open(SCRIPT,"> $bkpdir/../mindi-rsthw") || die "Unable to open $bkpdir/../mindi-rsthw";
     47    open(SCRIPT,"> $bkpdir/../mrmini-rsthw") || die "Unable to open $bkpdir/../mrmini-rsthw";
    4848    print SCRIPT  << 'EOF';
    4949#!/bin/bash
     
    6565        $tooldir = dirname($tool);
    6666        if (! (-e $tool)) {
    67             print "You should install the SmartStart Scripting toolkit tool $tool\nto benefit from mindi's enhanced hardware support\n";
     67            print "You should install the SmartStart Scripting toolkit tool $tool\nto benefit from mrmini's enhanced hardware support\n";
    6868            print "Get it from http://www.hp.com/servers/sstoolkit\n";
    6969            next;
    7070        } else {
    71             print "Found $tool, activating enhanced HP Proliant support in mindi\n";
     71            print "Found $tool, activating enhanced HP Proliant support in mrmini\n";
    7272            print TOOLS "$tool\n";
    7373        }
     
    100100} else {
    101101    print "\nWARNING: No Hardware support for $productname. Not a big issue, just less features and risks ;-)\n";
    102     print "You may ask your manufacturer to contribute to the mindi project\n";
     102    print "You may ask your manufacturer to contribute to the mrmini project\n";
    103103}
    104104rmdir $bkpdir if (-d $bkpdir) ;
  • devel/mrmini/sbin/mrmindi

    r2646 r2648  
    11#!/usr/bin/perl -w
    22#
    3 # Mindi main application
     3# mrmini main application
    44# Mini-distribution maker for the MondoRescue project
    55#
     
    3737=head1 NAME
    3838
    39 Mindi - Tool to create a boot environment from a distribution
     39mrmini - Tool to create a boot environment from a distribution
    4040
    4141=head1 DESCRIPTION
    4242
    43 B<mindi> creates a bootable ISO/USB image using files from the system it runs on. B<mindi> will try hard to reproduce the environment of its host system including loaded modules to ensure that the system can be booted properly from the created rescue media. B<mindi> is used by monodarchive(8) to produce the required USB/ISO images but can also be used stand-alone.
    44 
    45 For stand-alone usage, B<mindi> may be called without any parameters or switches. It will then interactively ask the user for all information required to create a set of boot/root media. Options on the command line or a configuration file can also be used to alter the way B<mindi> is working
    46 
    47 The probably more frequent way of calling B<mindi> is non-interactively from mondoarchive(8) using a dedicated configuration file.
     43B<mrmini> creates a bootable ISO/USB image using files from the system it runs on. B<mrmini> will try hard to reproduce the environment of its host system including loaded modules to ensure that the system can be booted properly from the created rescue media. B<mrmini> is used by monodarchive(8) to produce the required USB/ISO images but can also be used stand-alone.
     44
     45For stand-alone usage, B<mrmini> may be called without any parameters or switches. It will then interactively ask the user for all information required to create a set of boot/root media. Options on the command line or a configuration file can also be used to alter the way B<mrmini> is working
     46
     47The probably more frequent way of calling B<mrmini> is non-interactively from mondoarchive(8) using a dedicated configuration file.
    4848
    4949=head1 SYNOPSIS
    5050
    51 mindi [-v]|[-q]|[-h]|[--man]
     51mrmini [-v]|[-q]|[-h]|[--man]
    5252
    5353=head1 OPTIONS
     
    122122=item B<-V|--version>
    123123
    124 Display mindi version and exit
     124Display mrmini version and exit
    125125
    126126=cut
     
    159159
    160160 # mrcachedir points to the directory where the tool will store generated content
    161  # If not defined, mrcachedir is under /var/cache/mindi
    162  mrcachedir mindi = /var/cache/mindi
    163 
    164  Also look at man mindi.conf
     161 # If not defined, mrcachedir is under /var/cache/mrmini
     162 mrcachedir mrmini = /var/cache/mrmini
     163
     164 Also look at man mrmini.conf
    165165 
    166166=head1 AUTHORS
     
    170170=head1 COPYRIGHT
    171171
    172 Mindi is distributed under the GPL v2.0 license
     172mrmini is distributed under the GPL v2.0 license
    173173described in the file C<COPYING> included with the distribution.
    174174
     
    179179# Initialize the syntax string
    180180
    181 pb_syntax_init("mindi Version PBVER-rPBREV\n");
     181pb_syntax_init("mrmini Version PBVER-rPBREV\n");
    182182pb_display_init("text","");
    183183
     
    215215# Global variables
    216216#
    217 my $MINDI_VERSION = "PBVER-rPBREV";
    218 my $MINDI_PREFIX = "XXX";
    219 my $MINDI_CONF = "YYY";
    220 my $MINDI_LIB = "LLL";
    221 my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
    222 my $MINDI_FDISK = "$MINDI_SBIN/parted2fdik";
    223 my $MINDI_DEPLIST = "$MINDI_CONF/deplist.d";
     217my $MRMINI_VERSION = "PBVER-rPBREV";
     218my $MRMINI_PREFIX = "XXX";
     219my $MRMINI_CONF = "YYY";
     220my $MRMINI_LIB = "LLL";
     221my $MRMINI_SBIN = "$MRMINI_PREFIX/sbin";
     222my $MRMINI_FDISK = "$MRMINI_SBIN/parted2fdik";
     223my $MRMINI_DEPLIST = "$MRMINI_CONF/deplist.d";
    224224# Better ?
    225225my $ARCH = `uname -m`;
     
    233233#
    234234# Conf files Management
    235 # the $MINDI_CONF/mondorescue.conf.dist is delivered as part of the project and
     235# the $MRMINI_CONF/mondorescue.conf.dist is delivered as part of the project and
    236236# its checksum is verified as we need good default values that we can trust
    237237#
    238 open(MD5,"$MINDI_CONF/mondorescue.conf.dist.md5") || die "Unable to read mandatory $MINDI_CONF/mondorescue.conf.dist.md5: $!";
     238open(MD5,"$MRMINI_CONF/mondorescue.conf.dist.md5") || die "Unable to read mandatory $MRMINI_CONF/mondorescue.conf.dist.md5: $!";
    239239my $omd5 = <MD5>;
    240240chop($omd5);
    241241close(MD5);
    242 open(CONF,"$MINDI_CONF/mondorescue.conf.dist") || die "Unable to read mandatory $MINDI_CONF/mondorescue.conf.dist: $!";
     242open(CONF,"$MRMINI_CONF/mondorescue.conf.dist") || die "Unable to read mandatory $MRMINI_CONF/mondorescue.conf.dist: $!";
    243243my $md5 = Digest::MD5->new;
    244244binmode(CONF);
    245245$md5->addfile(CONF);
    246 die "Invalid MD5 found sum for $MINDI_CONF/mondorescue.conf.dist: $md5->hexdigest" if ($omd5 ne $md5->hexdigest);
     246die "Invalid MD5 found sum for $MRMINI_CONF/mondorescue.conf.dist: $md5->hexdigest" if ($omd5 ne $md5->hexdigest);
    247247close(CONF);
    248248
    249249# Adds conf files in order
    250 pb_conf_add("$ENV{'HOME'}/.mondorescuerc","$MINDI_CONF/mondorescue.conf","$MINDI_CONF/mondorescue.conf.dist");
     250pb_conf_add("$ENV{'HOME'}/.mondorescuerc","$MRMINI_CONF/mondorescue.conf","$MRMINI_CONF/mondorescue.conf.dist");
    251251
    252252#
    253253# Configuration parameters
    254254#
    255 $ENV{'PBPROJ'} = "mindi";
     255$ENV{'PBPROJ'} = "mrmini";
    256256my ($mr_boot_size,$mr_boot_cd,$mr_boot_usb,$mr_boot_tape,$mr_kernel,$mr_fstab) =  pb_conf_get("mr_boot_size","mr_boot_cd","mr_boot_usb","mr_boot_tape","mr_kernel","mr_fstab");
    257257my ($mr_tape_mods,$mr_scsi_mods,$mr_ide_mods,$mr_pcmcia_mods,$mr_usb_mods,$mr_net_mods,$mr_cdrom_mods,$mr_deny_mods,$mr_force_mods) =  pb_conf_get("mr_tape_mods","mr_scsi_mods","mr_ide_mods","mr_pcmcia_mods","mr_usb_mods","mr_net_mods","mr_cdrom_mods","mr_extra_mods","mr_deny_mods","mr_force_mods");
     
    271271pb_log_init($pbdebug, $pbLOG);
    272272
    273 pb_log(0,"mindi start date: $mr_date");
     273pb_log(0,"mrmini start date: $mr_date");
    274274pb_log(0,"-------------------------------------");
    275 pb_log(0,"mindi v$MINDI_VERSION");
     275pb_log(0,"mrmini v$MRMINI_VERSION");
    276276pb_log(0,"$ARCH architecture detected");
    277 pb_log(0,"mindi called with the following arguments: ".join(" ",@ARGV));
     277pb_log(0,"mrmini called with the following arguments: ".join(" ",@ARGV));
    278278pb_log(0,"-------------------------------------");
    279279pb_log(0,"MONDO_CACHE: $ENV{'MONDO_CACHE'}") if (defined $ENV{'MONDO_CACHE'});
    280 pb_log(0,"MINDI_LIB: $MINDI_LIB");
    281 pb_log(0,"MINDI_CONF: $MINDI_CONF");
    282 pb_log(0,"MINDI_SBIN: $MINDI_SBIN");
     280pb_log(0,"MRMINI_LIB: $MRMINI_LIB");
     281pb_log(0,"MRMINI_CONF: $MRMINI_CONF");
     282pb_log(0,"MRMINI_SBIN: $MRMINI_SBIN");
    283283if (-r "$ENV{'HOME'}/.mondorescuerc") {
    284284    pb_log(0,"-------------------------------------");
     
    286286    pb_display_file("$ENV{'HOME'}/.mondorescuerc");
    287287}
    288 if (-r "$MINDI_CONF/mondorescue.conf") {
     288if (-r "$MRMINI_CONF/mondorescue.conf") {
    289289    pb_log(0,"-------------------------------------");
    290     pb_log(0,"Conf file $MINDI_CONF/mondorescue.conf");
    291     pb_display_file("$MINDI_CONF/mondorescue.conf");
     290    pb_log(0,"Conf file $MRMINI_CONF/mondorescue.conf");
     291    pb_display_file("$MRMINI_CONF/mondorescue.conf");
    292292}
    293293pb_log(0,"-------------------------------------");
  • devel/mrmini/sbin/mrprepare-lvm

    r2540 r2648  
    2525=head1 NAME
    2626
    27 mrprepare-lvm - A Mindi Tool to restore the LVM configuration and apply it
     27mrprepare-lvm - A MondoRescue Tool to restore the LVM configuration and apply it
    2828
    2929=head1 DESCRIPTION
     
    135135# Global variables
    136136#
    137 my $MINDI_VERSION = "PBVER-rPBREV";
    138 my $MINDI_PREFIX = "PBPREFIX";
    139 my $MINDI_CONF = "PBCONF";
    140 my $MINDI_LIB = "PBLIB";
    141 my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
     137my $MRMINI_VERSION = "PBVER-rPBREV";
     138my $MRMINI_PREFIX = "PBPREFIX";
     139my $MRMINI_CONF = "PBCONF";
     140my $MRMINI_LIB = "PBLIB";
     141my $MRMINI_SBIN = "$MRMINI_PREFIX/sbin";
    142142#
    143143# Temp dir
Note: See TracChangeset for help on using the changeset viewer.