Changeset 1177


Ignore:
Timestamp:
Feb 16, 2007, 7:20:04 PM (13 years ago)
Author:
bruno
Message:

New configuration option for mindi mindi_deny_mods which allows to specify a list of modules loaded which should NOT go on the boot media made by mindi (Allows HP OCMP with HW cards support)

Location:
branches/stable/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/distributions/conf/mindi.conf.dist

    r1097 r1177  
    116116mindi_net_mods="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet"
    117117mindi_extra_mods="vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache"
     118#
     119# Modules that should NOT be part of the mini distribution
     120# created for recovery time
     121#
     122mindi_deny_mods=""
     123# Replace with that line for HP OCMP e.g.
     124#mindi_deny_mods="MPS_Driver_Mapper mps octtldrv tscttl streams"
    118125
    119126# Additional modules to support
  • branches/stable/mindi/mindi

    r1167 r1177  
    109109NET_MODS="$mindi_net_mods"
    110110EXTRA_MODS="$CDROM_MODS $mindi_extra_mods $mindi_additional_mods"
     111DENY_MODS="mindi_deny_mods"
    111112
    112113BOOT_MEDIA_MESSAGE="$mindi_boot_msg"
     
    939940    local module_list module fname oss r kern
    940941    oss="/root/oss/modules"
    941     module_list="`lsmod | sed -n '2,$s/ .*//p'`"
     942    module_list="`lsmod | sed -n '2,$s/ .*//'`"
     943    # Remove unwanted modules from list
     944    for i in $DENY_MODS; do
     945        module_list=`echo ${module_list} | tr ' ' '\n' | grep -Ev "^${i}$" | tr '\n' ' '`
     946    done
    942947###
    943948### Sq-Modification ... Use kernelname for module search path if specified
     
    10781083   
    10791084    echo -en "for outerloop in 1 2 3 4 5 ; do\necho -en \".\"\n" >> $outfile
    1080     list_to_echo="`lsmod | sed -n '2,$s/ .*//p'`"
     1085    # BERLIOS: That code is duplicated - Should be done once only
     1086    list_to_echo="`lsmod | sed -n '2,$s/ .*//'`"
     1087    # Remove unwanted modules from list
     1088    for i in $DENY_MODS; do
     1089        list_to_echo=`echo ${list_to_echo} | tr ' ' '\n' | grep -Ev "^${i}$" | tr '\n' ' '`
     1090    done
    10811091
    10821092    # Make temporary modprobe.conf file if we are told so
Note: See TracChangeset for help on using the changeset viewer.