Bug#661415: grub bash completion crashes gdm xsession start

Maximilian Gerhard maxbox at directbox.com
Mon Feb 27 01:05:40 UTC 2012


Package: grub-common
Version: 1.99-14
Severity: normal
Tags: wheezy sid

Grub bash_completion file /etc/bash_completion.d/grub crashes gdm
xsession start when you source bash_completion via /etc/bash.bashrc.

The reason for this is the naming of the two functions
_grub_mkpasswd-pbkdf2 and _grub_script-check. See ~/.xsession-errors log:

/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/grub: Zeile 417: `_grub_mkpasswd-pbkdf2': Ist
kein gültiger Bezeichner.

/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/grub: Zeile 477: `_grub_script-check': Ist kein
gültiger Bezeichner.

If you replace the '-' character with '_' then gdm xession starts
without any errors. That is exactly what the attached patch does.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_grub_bash_completion.patch
Type: text/x-diff
Size: 1312 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20120227/0c21d0f5/attachment.patch>


More information about the Pkg-grub-devel mailing list