summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-07-28 05:52:02 +0200
committerDave Reisner <dreisner@archlinux.org>2012-07-28 17:53:45 +0200
commit6a585950c5a014c35e449861b6b2040dca2d2516 (patch)
treecdf5aa65a7d55e54299baa6bca187ccf1dd43ad9 /bash-completion
parentb8459a2ac067b05925d660fdf2b62855eae544da (diff)
downloadmkinitcpio-6a585950c5a014c35e449861b6b2040dca2d2516.tar.gz
mkinitcpio-6a585950c5a014c35e449861b6b2040dca2d2516.tar.xz
implement --moduleroot option
This might be useful for creating an initramfs image as part of a kernel package. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash-completion b/bash-completion
index c37484c..6d21fd8 100644
--- a/bash-completion
+++ b/bash-completion
@@ -55,15 +55,15 @@ _files_from_dirs() {
_mkinitcpio() {
local action cur prev opts
opts=(-A --add -c --config -g --generate -H --hookhelp -h --help -k --kernel
- -L --listhooks -M --automods -n --nocolor -p --preset -S --skiphooks
- -s --save -t --builddir -v --verbose -z --compress)
+ -L --listhooks -M --automods -n --nocolor -p --preset -r --moduleroot
+ -S --skiphooks -s --save -t --builddir -v --verbose -z --compress)
_get_comp_words_by_ref cur prev
case $prev in
-[cg]|--config|--generate)
_filedir ;;
- -t|--builddir)
+ -r|--moduleroot|-t|--builddir)
_filedir -d ;;
-k|--kernel)
_find_kernel_versions ;;