Changeset 1759 in MondoRescue for branches/2.2.5/mindi


Ignore:
Timestamp:
Nov 1, 2007, 3:17:23 PM (16 years ago)
Author:
Bruno Cornec
Message:

Tries to add udev support also for rhel4

Location:
branches/2.2.5/mindi
Files:
1 added
3 edited

Legend:

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

    r1712 r1759  
    7777install -m 755 analyze-my-lvm $locallib/mindi
    7878install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi
    79 install -m 644 deplist.txt $conf
     79install -m 644 deplist.txt udev.files $conf
    8080
    8181# Substitute variables for mindi
  • branches/2.2.5/mindi/mindi

    r1756 r1759  
    27802780
    27812781    # Management of udev (which includes modprobe in rules)
    2782     ps auxww | grep -v grep | grep -q /udevd
     2782    ps auxww | grep -v grep | grep -qw udevd
    27832783    if [ $? -eq 0 ]; then
    27842784        echo "udev device manager found" > tmp/USE-UDEV
     2785        LogIt "udev device manager found"
    27852786        cp --parents -Rdf /etc/udev . 2> /dev/null
    27862787        cp --parents -Rdf /lib/udev /lib64/udev . 2> /dev/null
    27872788        if [ -x /sbin/udevd ]; then
    2788             LocateDeps /sbin/udevd /sbin/modprobe /sbin/insmod > $MINDI_TMP/udev.lis
    2789             rm -f sbin/modprobe sbin/insmod
    2790             cp --parents -Rdf /sbin/udevd /sbin/modprobe /sbin/insmod `sort -u $MINDI_TMP/udev.lis` .
     2789            lis=`grep -Ev'^#' $MINDI_CONF/udev.files`
     2790            LocateDeps $lis > $MINDI_TMP/udev.lis
     2791            for i in $lis; do
     2792                if [ "`echo $i | cut -c1`" = "/" ]; then
     2793                    j=`echo $i | cut -c2-`
     2794                    rm -f $j
     2795                fi
     2796            done
     2797            cp --parents -Rdf $lis `sort -u $MINDI_TMP/udev.lis` .
    27912798            rm -f $MINDI_TMP/udev.lis
    27922799        else
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1752 r1759  
    280280    PKLVL=`cut -f1 /proc/sys/kernel/printk`
    281281    echo 0 > /proc/sys/kernel/printk
    282     /sbin/udevd --daemon
     282    if [ -x /sbin/startudev ]; then
     283        /sbin/startudev
     284    fi
     285    # Depending on udevd version it gives back the hand or not :-(
     286    /sbin/udevd --daemon &
     287    sleep 2
    283288    echo $PKLVL > /proc/sys/kernel/printk
    284     # Avoids shell error messages
     289    # May avoid shell error messages
    285290    chmod 644 /dev/tty*
    286291}
Note: See TracChangeset for help on using the changeset viewer.