dracut/0049-dracut-bash-completion.sh-add-kver-kernel-version-co.patch
Harald Hoyer 8d2be9b2e4 dracut-026-54.git20130316
- fix for squashfs
Resolves: rhbz#922248
- documentation fixes
- sosreport, mkdir /run/initramfs
2013-03-16 10:36:46 +01:00

25 lines
882 B
Diff

From fb05f9876ac18b64c8b9e07f9eb2e451e818b46e Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Fri, 15 Mar 2013 10:42:18 +0100
Subject: [PATCH] dracut-bash-completion.sh: add --kver kernel version
completion
---
dracut-bash-completion.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dracut-bash-completion.sh b/dracut-bash-completion.sh
index 38e2ebd..322e630 100644
--- a/dracut-bash-completion.sh
+++ b/dracut-bash-completion.sh
@@ -51,6 +51,9 @@ _dracut() {
-a|-m|-o|--add|--modules|--omit)
comps=$(dracut --list-modules 2>/dev/null)
;;
+ --kver)
+ comps=$(cd /lib/modules; echo *)
+ ;;
*)
return 0
;;