Changeset 2812


Ignore:
Timestamp:
Apr 29, 2011, 3:40:08 PM (8 years ago)
Author:
bruno
Message:

r2184@localhost (orig r2183): bruno | 2009-04-30 17:52:54 +0200
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


Location:
branches/2.2.8/mindi
Files:
1 added
2 edited

Legend:

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

    r1989 r2812  
    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
  • branches/2.2.8/mindi/mindi

    r2804 r2812  
    22912291    fi
    22922292
     2293    # Management of perl scripts delivered needed at restore time
     2294    mindi-get-perl-modules `cat $MINDI_CONF/perl-scripts` > $MINDI_TMP/perl.lis
     2295    tar cf - `cat $MINDI_TMP/perl.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogIt "Problem in perl scripts analysis" $MINDI_TMP/$$.log
     2296
    22932297    for w in cdrom groovy-stuff ; do
    22942298        mkdir -p mnt/$w
     
    24412445        set | grep -Ew "^$1" | cut -d= -f2
    24422446    fi
    2443     MindiExit 0
     2447    exit 0
    24442448fi
    24452449
Note: See TracChangeset for help on using the changeset viewer.