Ignore:
Timestamp:
Apr 30, 2009, 5:52:54 PM (10 years ago)
Author:
bruno
Message:

Tries to solve issue on ia64 where perl modules used by mindi were missing by adding a dedicated script handling them based on what is used on mandriva to make rpm deps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/install.sh

    r1989 r2183  
    7777install -m 644 msg-txt dev.tgz $locallib/mindi
    7878install -m 644 deplist.txt udev.files proliant.files $conf
     79install -m 755 mindi-bkphw > $local/sbin
     80install -m 755 mindi-get-perl-modules $local/sbin
     81install -m 755 parted2fdisk.pl $local/sbin
    7982
    8083# Substitute variables for mindi
    8184sed -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
    82 sed -e "s~= "YYY"~= "$subconf"~" mindi-bkphw > $local/sbin/mindi-bkphw
    8385chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw
    84 install -m 755 parted2fdisk.pl $local/sbin
    8586
    8687install -m 644 mindi.8 $MANDIR
     
    9596    (cd $local/sbin && ln -sf parted2fdisk.pl parted2fdisk)
    9697    install -s -m 755 $local/sbin/parted2fdisk.pl $locallib/mindi/rootfs/sbin/parted2fdisk
    97     # Try to avoid the need ot additional perl modules at the moment
    98     perl -pi -e 's/use strict;//' $locallib/mindi/rootfs/sbin/parted2fdisk
    9998else
    10099    # FHS requires fdisk under /sbin
     
    112111fi
    113112
     113# Generate the list of perl modules needed at restore time for mindi
     114cat > $conf/perl-scripts << EOF
     115$local/sbin/mindi-get-perl-modules
     116$local/sbin/mindi-bkphw
     117$local/sbin/parted2fdisk.pl
     118EOF
     119
    114120exit 0
Note: See TracChangeset for help on using the changeset viewer.