Changeset 2081 in MondoRescue


Ignore:
Timestamp:
Dec 14, 2008, 11:23:09 AM (12 years ago)
Author:
Bruno Cornec
Message:

Support added for udevadm and start_udev in mandriva 2009.0, udev 128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mindi/rootfs/sbin/init

    r2075 r2081  
    291291    PKLVL=`cut -f1 /proc/sys/kernel/printk`
    292292    echo 0 > /proc/sys/kernel/printk
     293    # Many possibilities depending on udev versions
    293294    if [ -x /sbin/startudev ]; then
    294295        /sbin/startudev
     296    fi
     297    if [ -x /sbin/start_udev ]; then
     298        /sbin/start_udev
    295299    fi
    296300    # Depending on udevd version it gives back the hand or not :-(
     
    590594    ModprobeAllModules
    591595    echo $PKLVL > /proc/sys/kernel/printk
     596
     597    # Retry failed udev events now that local filesystems are mounted read-write
     598    # (useful for rules creating network ifcfg files)
     599    if [ -e "/tmp/USE-UDEV" ] ; then
     600        if [ -x /sbin/udevadm ]; then
     601            /sbin/udevadm trigger --retry-failed
     602        fi
     603    fi
    592604}
    593605
     
    773785    cp -af /dev/$i /tmp
    774786done
     787# Not sure it's still needed, but shouldn't hurt
     788if [ -e "/tmp/USE-UDEV" ] ; then
     789    if [ -x /sbin/udevadm ]; then
     790        /sbin/udevadm trigger --retry-failed
     791    fi
     792fi
    775793if grep "backup-media-type" /tmp/mondo-restore.cfg > /dev/null 2> /dev/null ; then
    776794    LogIt "backup-media-type is specified in config file - great."
Note: See TracChangeset for help on using the changeset viewer.