Changeset 3310 in MondoRescue for branches/3.2/mindi/rootfs


Ignore:
Timestamp:
Jul 3, 2014, 10:24:14 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Remove EXTRA_MODS variable as it was leading to modules missing at restore time. Now part of CDROM_MODS and were anyway loaded 99% of the time.
  • Optimize modules list computation between mindi and restore init script.
  • As a consequence do not try to relaod modules list twice as there is not difference in modules list anymore, eveything is in the boot part.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/etc/init.d/rcS

    r3305 r3310  
    795795
    796796    echo "Searching for modules to install..."
    797     lismod=`find /lib/modules -name '*\.ko*' -o -name '*\.o*'`
     797    if [ ! -e /tmp/modules ]; then
     798        LogIt "Unable to find the modules list. Computing one. This may take some time..."
     799        lismod=`find /lib/modules -name '*\.ko*' -o -name '*\.o*'`
     800        for m in $lismod; do
     801            k=`basename $m | sed 's/\.ko.*$//'`
     802            j=`basename $k | sed 's/\.o.*$//'`
     803            echo "$j" >> /tmp/modules
     804        done
     805    fi
    798806    # loading forced modules first
    799     for m in $lismod; do
    800         k=`basename $m | sed 's/\.ko.*$//'`
    801         j=`basename $k | sed 's/\.o.*$//'`
     807    for j in `cat /tmp/modules`; do
    802808        echo "$FORCE_MODS" | grep -q "$j "
    803809        if [ $? -eq 0 ]; then
     
    806812        fi
    807813    done
    808     for m in $lismod; do
    809         k=`basename $m | sed 's/\.ko.*$//'`
    810         j=`basename $k | sed 's/\.o.*$//'`
     814    for j in `cat /tmp/modules`; do
    811815        echo "$DENY_MODS" | grep -q "$j "
    812816        if [ $? -eq 0 ]; then
     
    855859    # BCO: test return value
    856860    install-additional-tools
    857     # Keep the kernel silent again
    858     PKLVL=`cut -f1 /proc/sys/kernel/printk`
    859     echo 0 > /proc/sys/kernel/printk
    860     ModprobeAllModules
    861     echo $PKLVL > /proc/sys/kernel/printk
    862861
    863862    # Retry failed udev events now that local filesystems are mounted read-write
     
    882881export PATH GROOVY USER LOGFILE ARCH
    883882
    884 mount -o remount rw /
     883mount -o remount,rw /
    885884rm -f $LOGFILE
    886885
Note: See TracChangeset for help on using the changeset viewer.