Changeset 1802 in MondoRescue for branches/2.2.5


Ignore:
Timestamp:
Nov 15, 2007, 4:00:47 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • do not require perl modules (strict.pm) at restore time
  • try to avoid modprobe messages at restore time
Location:
branches/2.2.5/mindi
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/deplist.txt

    r1793 r1802  
    5050/usr/share/misc/file/magic /usr/share/file/magic
    5151
    52 # For swap uuid support and probably then more in the future
     52# For swap uuid support, ia64 and probably then more in the future
    5353/usr/bin/perl
    5454
  • branches/2.2.5/mindi/install.sh

    r1801 r1802  
    9696    (cd $local/sbin && ln -sf parted2fdisk.pl parted2fdisk)
    9797    install -s -m 755 $local/sbin/parted2fdisk.pl $locallib/mindi/rootfs/sbin/parted2fdisk
     98    # Try to avoid the need ot additional perl modules at the moment
     99    perl -pi -e 's/use strict;//' $locallib/mindi/rootfs/sbin/parted2fdisk
    98100else
    99101    # FHS requires fdisk under /sbin
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1800 r1802  
    531531}
    532532
     533ModprobeAllModules() {
     534
     535    for m in *.ko; do
     536        j=`echo $m | sed 's/\.ko$//'`
     537        if [ -e $j ]; then
     538            modprobe -q $j
     539        fi
     540    done
     541}
    533542
    534543ExtractDataDisksAndLoadModules() {
     
    537546    # Keep the kernel silent again
    538547    PKLVL=`cut -f1 /proc/sys/kernel/printk`
     548    echo 0 > /proc/sys/kernel/printk
    539549    if [ ! -e "/tmp/USE-UDEV" ] ; then
    540550        echo "Inserting modules ..."
    541         echo 0 > /proc/sys/kernel/printk
    542551        insert-all-my-modules >> $LOGFILE 2>> $LOGFILE
    543552    else
    544         for m in *.ko; do
    545             j=`echo $m | sed 's/\.ko$//'`
    546             modprobe -q $j
    547         done
     553        ModprobeAllModules
    548554    fi
    549555    echo $PKLVL > /proc/sys/kernel/printk
     
    596602    InsertEssentialModules
    597603else
    598     for m in *.ko; do
    599         j=`echo $m | sed 's/\.ko$//'`
    600         modprobe -q $j
    601     done
     604    ModprobeAllModules
    602605fi
    603606echo $PKLVL > /proc/sys/kernel/printk
Note: See TracChangeset for help on using the changeset viewer.