summaryrefslogtreecommitdiffstats
path: root/bash-completion
AgeCommit message (Collapse)AuthorFilesLines
2013-11-26move a bunch of stuff to subdirsDave Reisner1-84/+0
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-02-28bash-completion: use kernel versions from detectionDave Reisner1-8/+2
Instead of rummaging through /lib for kernel versions, just use the validated versions from the hunt through /boot. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-02-05Add -P, --allpresets optionDave Reisner1-1/+1
As a logical extension, allow the -p option to be specified multiple times in order to process several presets at once. Original-patch-by: Sébastien Luttringer <seblu@seblu.net> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-02-03bash-completion: detect_kver -> _detect_kverDave Reisner1-2/+2
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-01-13factor out kver detection to functions fileDave Reisner1-1/+0
This leaves bash completion with a duplication, but this is intentional to avoid pulling in the entire functions file and worrying about pollution. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-01-12mkinitcpio: avoid using 'file' to get kernel versionsDave Reisner1-8/+16
The kernel defines an offset at a fixed location within the bzImage which we can use to find the kernel version string. Since this is fairly important, reimplement the algorithm (which file almost surely uses) using low level tools to avoid the possibility that file may break or change its output, critically wounding mkinitcpio. Note that this change leaves 'file' in use for lsinitcpio compression detection. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-10-25update bash completion for -V, --versionDave Reisner1-2/+2
2012-09-30lsinitcpio: add -l, --list option; define as defaultDave Reisner1-1/+2
This is the default action for lsinitcpio. Add it just for the purpose of clarity. This change also separates out true options from 'actions' and validates that the user only passed a single action to lsinitcpio. Update the manpage accordingly. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-09-30lsinitcpio: add -c, --config option to dump configDave Reisner1-1/+1
Now that mkinitcpio stores the build time config file in the image, we should have a way of easily getting it back out. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-07-28mkinitcpio: rename longopt for --add to --addhooksDave Reisner1-1/+1
Rename this option so that it mirrors the longopt name for -S, --skiphooks. The original --add option remains behind in the option parser for backwards compatability, but no other references remain. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-07-28implement --moduleroot optionDave Reisner1-3/+3
This might be useful for creating an initramfs image as part of a kernel package. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-05-12mkinitcpio: remove --basedir optionDave Reisner1-6/+5
This option is just a bad idea. Initramfs creation is too important to get wrong, and running it from outside the root FS has too many gotchas, the worst of them being: - where do you pull hooks from? - how do you resolve binary dependencies within the root? In general, dealing with the extra luggage of the base directory makes the codebase more complicated than it needs to be (see all the '_' prefixed functions which are called from add functions). In favor of simplifying the code, and making it more maintainable, kill this off and force the sane option of chroot'ing into an install if the need arises. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-22bash-completion: avoid using cdDave Reisner1-4/+19
Introduce _files_from_dir, which loops over arguments to find files in the given directories. Additionally allow passing a flag which will strip suffixes from any found files. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-22lsinitcpio: adopt parseopts for option parsingDave Reisner1-6/+10
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-22mkinitcpio: adopt parseopts for option parsingDave Reisner1-11/+22
Updates the doc and bash-completion, as well. Also adds the previously unmentioned -A option to the --help output. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-18bash-completion: align whitespace with rest of repoDave Reisner1-38/+38
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-16bash-completion: find hooks in /usr/libMatthew Monaco1-2/+3
[dreisner: add handling for -A flag] Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-13update bash completionDave Reisner1-5/+11
- change scavenging of /lib/modules to avoid grabbing extramodules dirs - add missing options for lsinitcpio and mkinitcpio - use _filedir for completing -b Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-30bash-completion: use a PE instead of sedDave Reisner1-1/+2
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-30bash-completion: match style to rest of codeDave Reisner1-5/+5
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-30bash-completion: complete -k on kernel imagesDave Reisner1-1/+15
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-27Use _get_comp_words_by_ref in bash completionSebastien Luttringer1-8/+8
Thanks Dave Reisner for suggestion Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-26emove old '-a' option from bash completion and fix '-s' option.Thomas Bächler1-2/+2
2011-06-26Remove old '-m' option from bash completion.Thomas Bächler1-2/+1
2011-06-26Add lsinitcpio bash completionSebastien Luttringer1-0/+12
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-26Add bash completion to mkinitcpioSebastien Luttringer1-0/+20
It's annoying to remember the name of preset each time Signed-off-by: Sebastien Luttringer <seblu@seblu.net>