Permalink
Browse files

modulefilter => MODFILTER

  • Loading branch information...
1 parent 1248c58 commit 7682d990ea85476bd8da46605ba6a27d013014dd @falconindy committed May 7, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 README.pod
  2. +1 −1 builders/filesystems
  3. +1 −1 builders/mdadm
  4. +1 −1 builders/scsi
  5. +2 −2 geninit.api
View
@@ -154,7 +154,7 @@ the permissions of the directory will be 755.
Add one or more classifications of modules to the image, specified as a
directory relative to C</lib/modules/KERNELVERSION/kernel>, e.g. 'drivers/scsi'
or 'crypto'. Modules can be filtered by name by adding glob (including extended
-glob) patterns to the I<modulefilter> array prior to calling
+glob) patterns to the I<MODFILTER> array prior to calling
B<add_driver_classes>. This filter is cleared after the parsing of each hook,
although you are free to call B<unset> from within the builder, if desired.
@@ -1,7 +1,7 @@
#!/bin/bash
build() {
- modulefilter=('nls_*')
+ MODFILTER=('nls_*')
add_driver_classes fs
}
View
@@ -1,7 +1,7 @@
#!/bin/bash
build() {
- modulefilter=('dm-*')
+ MODFILTER=('dm-*')
add_driver_classes drivers/md
add_binary "/sbin/mdadm"
View
@@ -1,7 +1,7 @@
#!/bin/bash
build() {
- modulefilter=('*_cs')
+ MODFILTER=('*_cs')
add_driver_classes drivers/scsi drivers/block drivers/message/fusion &&
add_module sd_mod
}
View
@@ -190,7 +190,7 @@ use_hookscript() { # {{{
add_driver_classes() { # {{{
# add a class of drivers, as a dir relative to /lib/modules/$kernver/kernel.
# if you need to block addition of modules, you can add glob patterns to the
- # 'modulefilter' array within your builder. They must be quoted and the
+ # 'MODFILTER' array within your builder. They must be quoted and the
# filter is cleared after parsing of each builder.
# $@: directories
@@ -212,7 +212,7 @@ add_driver_classes() { # {{{
for mod in "${mods[@]}"; do
# check for filter match
- for filter in "${modulefilter[@]}"; do
+ for filter in "${MODFILTER[@]}"; do
[[ $mod == $filter ]] && continue 2
done

0 comments on commit 7682d99

Please sign in to comment.