]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: kernel-install: update default path to kernel image
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 07:52:27 +0000 (16:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 14:16:29 +0000 (23:16 +0900)
shell-completion/bash/kernel-install

index 5a78528d36beb27b59be58590bc5e5648275d6a3..f291d3e63adcb2fe646200ce8d77864366591589 100644 (file)
@@ -38,7 +38,7 @@ _kernel_install() {
                 fi
                 ;;
             3)
-                [[ "$cur" ]] || cur=/boot/vmlinuz-${COMP_WORDS[2]}
+                [[ "$cur" ]] || cur=/lib/modules/${COMP_WORDS[2]}/vmlinuz
                 comps=$(compgen -f -- "$cur")
                 compopt -o filenames
                 ;;