aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Yao <ryao@cs.stonybrook.edu>2012-07-19 15:59:03 -0400
committerRichard Yao <ryao@cs.stonybrook.edu>2012-07-19 16:53:59 -0400
commit908a463e07491d3c69aa1daf853b4d699dbb8534 (patch)
tree9e5e822d70a3ded33fa1d9c2002f6c5a7a10959d /gen_cmdline.sh
parentAdding modules cmdline options for genkernel (module.option[=value]). (diff)
downloadgenkernel-908a463e07491d3c69aa1daf853b4d699dbb8534.tar.gz
genkernel-908a463e07491d3c69aa1daf853b4d699dbb8534.tar.bz2
genkernel-908a463e07491d3c69aa1daf853b4d699dbb8534.zip
Support module options set in /etc/module.d, amend cmdline options patch
Diffstat (limited to 'gen_cmdline.sh')
-rwxr-xr-xgen_cmdline.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/gen_cmdline.sh b/gen_cmdline.sh
index 184db655..938b1a5f 100755
--- a/gen_cmdline.sh
+++ b/gen_cmdline.sh
@@ -75,6 +75,7 @@ longusage() {
echo " --mountboot Mount BOOTDIR automatically if mountable"
echo " --no-mountboot Don't mount BOOTDIR automatically"
echo " --bootdir=<dir> Set the location of the boot-directory, default is /boot"
+ echo " --modprobedir=<dir> Set the location of the modprobe.d-directory, default is /etc/modprobe.d"
echo " Initialization"
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash-res=<res> Select splash theme resolutions to install"
@@ -248,6 +249,10 @@ parse_cmdline() {
CMD_BOOTDIR=`parse_opt "$*"`
print_info 2 "CMD_BOOTDIR: ${CMD_BOOTDIR}"
;;
+ --modprobedir=*)
+ CMD_MODPROBEDIR=`parse_opt "$*"`
+ print_info 2 "CMD_MODPROBEDIR: ${CMD_MODPROBEDIR}"
+ ;;
--do-keymap-auto)
CMD_DOKEYMAPAUTO=1
CMD_KEYMAP=1