Blame 0049-dracut-bash-completion.sh-add-kver-kernel-version-co.patch

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