Ignore:
Timestamp:
Feb 16, 2009, 5:50:07 PM (11 years ago)
Author:
Bruno Cornec
Message:

Begining f devl branch coding nd preliminary organisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/mindi/sbin/mindi

    r2003 r2149  
    1818use File::Copy;
    1919use File::stat;
    20 use File::Temp qw(tempdir);
    21 use POSIX qw(strftime);
    2220use Digest::MD5 qw(md5_hex);
    2321use lib qw (lib);
     22use POSIX qw(strftime);
    2423use ProjectBuilder::Base;
    2524use ProjectBuilder::Conf;
    2625use ProjectBuilder::Distribution;
     26use ProjectBuilder::Display;
     27use MondoRescue::Mindi::LVM;
     28use MondoRescue::Base;
    2729
    2830# Global variables
     
    161163#
    162164my $MINDI_VERSION = "PBVER-rPBREV";
    163 my $MINDI_PREFIX = "PBPREFIX";
    164 my $MINDI_CONF = "PBCONF";
    165 my $MINDI_LIB = "PBLIB";
     165my $MINDI_PREFIX = "XXX";
     166my $MINDI_CONF = "YYY";
     167my $MINDI_LIB = "LLL";
    166168my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
    167169my $MINDI_FDISK = "$MINDI_SBIN/parted2fdik";
     
    246248# LVM setup
    247249#
    248 my $LVM = "none";
    249 my $LVMCMD = "";
    250 if (-d "/proc/lvm") {
    251     # Version 1
    252     $LVM = "v1";
    253 } elsif (-d "/dev/mapper") {
    254     # Version 2
    255     $LVM = "v2";
    256     $LVMCMD = "lvm";
    257 }   
    258 pb_log(0,"LVM set to $LVM");
    259 pb_log(0,"-------------------------------------");
     250my ($lvmver,$lvmcmd) = mr_lvm_check();
     251
     252pb_log(0,"LVM $lvmver command set to $lvmcmd");
     253pb_log(0,"-------------------------------------");
     254mr_exit(0);
Note: See TracChangeset for help on using the changeset viewer.