Bug#623975: grub2: Add support for setkey!

April 24th, 2011 - 07:30 pm ET by Garrett McLean | Report spam

Package: grub2
Version: 1.98+20100804-14
Severity: wishlist

Please add support for setkey! Without it I am forced to use a QWERTY layout
if I want to edit menu entries in grub (pressing 'e' at the menu). This is
super annoying as a Dvorak user.

Thanks!
-Garrett


*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/b3fcb25e-8ed6-44e0-97c9-3f4c975a947c / ext4
rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda7 /home xfs rw,relatime,attr2,noquota 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST3160023AS_5MT2ZXW2
(hd1) /dev/disk/by-id/usb-Corsair_Flash_Voyager_6a72f47172b167-0:0
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmoded0x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-amd64' --class debian
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c
echo 'Loading Linux 2.6.38-2-amd64 ...'
linux /boot/vmlinuz-2.6.38-2-amd64
root=UUID=b3fcb25e-8ed6-44e0-97c9-3f4c975a947c ro nouveau.modeset=0 vgay5
quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-amd64 (recovery mode)'
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c
echo 'Loading Linux 2.6.38-2-amd64 ...'
linux /boot/vmlinuz-2.6.38-2-amd64
root=UUID=b3fcb25e-8ed6-44e0-97c9-3f4c975a947c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-2-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 985aceac5ace870a
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type
the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub2 depends on:
ii grub-pc 1.98+20100804-14 GRand Unified Bootloader,
version

grub2 recommends no packages.

grub2 suggests no packages.



<div>Package: grub2</div><div>Version: 1.98+20100804-14</div><div>Severity: wishlist</div><div><br></div><div>Please add support for setkey! Without it I am forced to use a QWERTY layout if I want to edit menu entries in grub (pressing &#39;e&#39; at the menu). This is super annoying as a Dvorak user.</div>

<div><br></div><div>Thanks!</div><div>-Garrett</div><div><br></div><div>-- Package-specific info:</div><div><br></div><div>*********************** BEGIN /proc/mounts</div><div>/dev/disk/by-uuid/b3fcb25e-8ed6-44e0-97c9-3f4c975a947c / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0</div>

<div>/dev/sda7 /home xfs rw,relatime,attr2,noquota 0 0</div><div>*********************** END /proc/mounts</div><div><br></div><div>*********************** BEGIN /boot/grub/device.map</div><div>(hd0)<span class="Apple-tab-span" style="white-space:pre"> </span>/dev/disk/by-id/ata-ST3160023AS_5MT2ZXW2</div>

<div>(hd1)<span class="Apple-tab-span" style="white-space:pre"> </span>/dev/disk/by-id/usb-Corsair_Flash_Voyager_6a72f47172b167-0:0</div><div>*********************** END /boot/grub/device.map</div><div><br></div><div>*********************** BEGIN /boot/grub/grub.cfg</div>

<div>#</div><div># DO NOT EDIT THIS FILE</div><div>#</div><div># It is automatically generated by grub-mkconfig using templates</div><div># from /etc/grub.d and settings from /etc/default/grub</div><div>#</div><div><br></div>

<div>### BEGIN /etc/grub.d/00_header ###</div><div>if [ -s $prefix/grubenv ]; then</div><div>  load_env</div><div>fi</div><div>set default=&quot;0&quot;</div><div>if [ &quot;${prev_saved_entry}&quot; ]; then</div><div>  set saved_entry=&quot;${prev_saved_entry}&quot;</div>

<div>  save_env saved_entry</div><div>  set prev_saved_entry=</div><div>  save_env prev_saved_entry</div><div>  set boot_once=true</div><div>fi</div><div><br></div><div>function savedefault {</div><div>  if [ -z &quot;${boot_once}&quot; ]; then</div>

<div>    saved_entry=&quot;${chosen}&quot;</div><div>    save_env saved_entry</div><div>  fi</div><div>}</div><div><br></div><div>function load_video {</div><div>  insmod vbe</div><div>  insmod vga</div><div>  insmod video_bochs</div>

<div>  insmod video_cirrus</div><div>}</div><div><br></div><div>insmod part_msdos</div><div>insmod ext2</div><div>set root=&#39;(hd0,msdos5)&#39;</div><div>search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c</div>

<div>if loadfont /usr/share/grub/unicode.pf2 ; then</div><div>  set gfxmode=640x480</div><div>  load_video</div><div>  insmod gfxterm</div><div>fi</div><div>terminal_output gfxterm</div><div>insmod part_msdos</div><div>insmod ext2</div>

<div>set root=&#39;(hd0,msdos5)&#39;</div><div>search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c</div><div>set locale_dir=($root)/boot/grub/locale</div><div>set lang=en</div><div>insmod gettext</div>

<div>set timeout=5</div><div>### END /etc/grub.d/00_header ###</div><div><br></div><div>### BEGIN /etc/grub.d/05_debian_theme ###</div><div>insmod part_msdos</div><div>insmod ext2</div><div>set root=&#39;(hd0,msdos5)&#39;</div>

<div>search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c</div><div>insmod png</div><div>if background_image /usr/share/images/desktop-base/spacefun-grub.png; then</div><div>  set color_normal=light-gray/black</div>

<div>  set color_highlight=white/black</div><div>else</div><div>  set menu_color_normal=cyan/blue</div><div>  set menu_color_highlight=white/blue</div><div>fi</div><div>### END /etc/grub.d/05_debian_theme ###</div><div><br>

</div><div>### BEGIN /etc/grub.d/10_linux ###</div><div>menuentry &#39;Debian GNU/Linux, with Linux 2.6.38-2-amd64&#39; --class debian --class gnu-linux --class gnu --class os {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod part_msdos</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod ext2</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>set root=&#39;(hd0,msdos5)&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>echo<span class="Apple-tab-span" style="white-space:pre"> </span>&#39;Loading Linux 2.6.38-2-amd64 ...&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>linux<span class="Apple-tab-span" style="white-space:pre"> </span>/boot/vmlinuz-2.6.38-2-amd64 root=UUID=b3fcb25e-8ed6-44e0-97c9-3f4c975a947c ro  nouveau.modeset=0 vga=795 quiet</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>echo<span class="Apple-tab-span" style="white-space:pre"> </span>&#39;Loading initial ramdisk ...&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>initrd<span class="Apple-tab-span" style="white-space:pre"> </span>/boot/initrd.img-2.6.38-2-amd64</div>

<div>}</div><div>menuentry &#39;Debian GNU/Linux, with Linux 2.6.38-2-amd64 (recovery mode)&#39; --class debian --class gnu-linux --class gnu --class os {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod part_msdos</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod ext2</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>set root=&#39;(hd0,msdos5)&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>search --no-floppy --fs-uuid --set b3fcb25e-8ed6-44e0-97c9-3f4c975a947c</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>echo<span class="Apple-tab-span" style="white-space:pre"> </span>&#39;Loading Linux 2.6.38-2-amd64 ...&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>linux<span class="Apple-tab-span" style="white-space:pre"> </span>/boot/vmlinuz-2.6.38-2-amd64 root=UUID=b3fcb25e-8ed6-44e0-97c9-3f4c975a947c ro single </div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>echo<span class="Apple-tab-span" style="white-space:pre"> </span>&#39;Loading initial ramdisk ...&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>initrd<span class="Apple-tab-span" style="white-space:pre"> </span>/boot/initrd.img-2.6.38-2-amd64</div>

<div>}</div><div>### END /etc/grub.d/10_linux ###</div><div><br></div><div>### BEGIN /etc/grub.d/20_linux_xen ###</div><div>### END /etc/grub.d/20_linux_xen ###</div><div><br></div><div>### BEGIN /etc/grub.d/30_os-prober ###</div>

<div>menuentry &quot;Windows 7 (loader) (on /dev/sda1)&quot; {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod part_msdos</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>insmod ntfs</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>set root=&#39;(hd0,msdos1)&#39;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>search --no-floppy --fs-uuid --set 985aceac5ace870a</div>

<div><span class="Apple-tab-span" style="white-space:pre"> </span>chainloader +1</div><div>}</div><div>### END /etc/grub.d/30_os-prober ###</div><div><br></div><div>### BEGIN /etc/grub.d/40_custom ###</div><div># This file provides an easy way to add custom menu entries.  Simply type the</div>

<div># menu entries you want to add after this comment.  Be careful not to change</div><div># the &#39;exec tail&#39; line above.</div><div>### END /etc/grub.d/40_custom ###</div><div><br></div><div>### BEGIN /etc/grub.d/41_custom ###</div>

<div>if [ -f  $prefix/custom.cfg ]; then</div><div>  source $prefix/custom.cfg;</div><div>fi</div><div>### END /etc/grub.d/41_custom ###</div><div>*********************** END /boot/grub/grub.cfg</div><div><br></div><div>
<div>Debian Release: wheezy/sid</div><div>  APT prefers testing</div><div>  APT policy: (500, &#39;testing&#39;)</div><div>Architecture: amd64 (x86_64)</div><div><br></div><div>Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)</div>

<div>Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)</div><div>Shell: /bin/sh linked to /bin/dash</div><div><br></div><div>Versions of packages grub2 depends on:</div><div>ii  grub-pc                 1.98+20100804-14 GRand Unified Bootloader, version </div>

<div><br></div><div>grub2 recommends no packages.</div><div><br></div><div>grub2 suggests no packages.</div><div><br></div><div>-- no debconf information</div><div><br></div>




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 8 repliesReplies Make a reply

Replies

#1 Colin Watson
April 24th, 2011 - 07:50 pm ET | Report spam
On Sun, Apr 24, 2011 at 04:24:40PM -0700, Garrett McLean wrote:
Please add support for setkey! Without it I am forced to use a QWERTY layout
if I want to edit menu entries in grub (pressing 'e' at the menu). This is
super annoying as a Dvorak user.



It almost certainly isn't going to be backported to squeeze, but the
version in sid has grub-mklayout and grub-kbdcomp utilities. You can do
something like this (untested):

sudo mkdir -p /boot/grub/layouts
ckbcomp us dvorak | sudo grub-mklayout -o /boot/grub/layouts/us:dvorak.gkb

... and then add this command to /boot/grub/custom.cfg:

keymap us:dvorak

Hopefully we'll get this a bit more neatly integrated in future.

Colin Watson []



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics