Bug 1218875

Summary: grub2-2.12-1.1 bash completion not working
Product: [openSUSE] openSUSE Tumbleweed Reporter: Jared Hudson <jared.hudson>
Component: BootloaderAssignee: Bootloader Maintainers <bootloader-maintainers>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: glin
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jared Hudson 2024-01-16 23:39:16 UTC
Fully updated Tumbleweed system.
grub2-2.12-1.1.x86_64

bash completion has stopped working for grub2 prefixed commands.

If I move the grub bash completion script from /usr/share/bash-completion/completions/grub to /etc/bash_completion.d/grub.sh and reload the shell then bash completion of grub2 prefixed commands starts working again.

I noticed that bug #1213855 requested this move out of /etc/bash_completion.d/ .
Comment 1 Gary Ching-Pang Lin 2024-01-26 08:40:15 UTC
Urh, the bash-completion file from grub2 seems not working well in the new directory. That file is still using some deprecated functions not working for /usr/share/bash-completion/completions/ and bash-completion also requires the matching app name there. Will find a proper fix.
Comment 2 Gary Ching-Pang Lin 2024-02-06 06:56:21 UTC
The patch has been submitted to grub2 upstream for review.
https://lists.gnu.org/archive/html/grub-devel/2024-01/msg00111.html