Changeset 2540 in MondoRescue for devel/mr/lib/MondoRescue


Ignore:
Timestamp:
Jan 9, 2010, 4:40:53 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3576@localhost: bruno | 2010-01-08 01:15:36 +0100
First set of correct split packages. Now need to work on content. mranalyze-lvm is now executable.

Location:
devel/mr/lib/MondoRescue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/mr/lib/MondoRescue/Base.pm

    r2539 r2540  
    1919use ProjectBuilder::Base;
    2020use ProjectBuilder::Conf;
     21use MondoRescue::DynConf;
    2122
    2223# Inherit from the "Exporter" module which handles exporting functions.
     
    5152=cut
    5253
    53 sub mr_exit {
     54sub mr_init {
    5455
    5556my $msg = shift || "";
     
    6061
    6162# Get the various location determined at installation time
    62 my ($confdir,$localdir,$pbproj) = mr_dyn_conf();
     63my ($confdir,$localdir,$pbproj) = mr_dynconf_init();
    6364
    6465# First use the main configuration file
    65 pb_conf_add("$confdir/$pbproj/$pbproj.conf");
     66pb_conf_init($pbproj);
     67pb_conf_add("$confdir/$pbproj.conf");
    6668}
    6769
  • devel/mr/lib/MondoRescue/LVM.pm

    r2538 r2540  
    88# Provided under the GPL v2
    99
    10 package MondoRescue::Mindi::LVM;
     10package MondoRescue::LVM;
    1111
    1212use strict 'vars';
     
    5353# Get params from the conf file
    5454my ($lvmds_t,$lvmproc_t,$lvmcmd_t,$lvmpath_t) = pb_conf_get("mr_lvmdiskscan","mr_lvmprocfile","mr_lvmcmd","mr_lvmpath");
    55 my $lvmds = $lvmds_t->{'mindi'};
    56 my $lvmproc = $lvmproc_t->{'mindi'};
    57 my $lvmcmd = $lvmcmd_t->{'mindi'};
    58 my $lvmpath = $lvmpath_t->{'mindi'};
     55my $lvmds = $lvmds_t->{$ENV{PBPROJ}};
     56my $lvmproc = $lvmproc_t->{$ENV{PBPROJ}};
     57my $lvmcmd = $lvmcmd_t->{$ENV{PBPROJ}};
     58my $lvmpath = $lvmpath_t->{$ENV{PBPROJ}};
    5959
    6060if (! -x $lvmproc) {
Note: See TracChangeset for help on using the changeset viewer.