[Bug 448413] [NEW] grub2 parses kernel parameters with $ as shell variables

shemgp shemgp at gmail.com
Sun Oct 11 02:14:04 UTC 2009


Public bug reported:

Binary package hint: grub2

The original kernel line in menu.lst was:

kernel          /boot/vmlinuz-2.6.31-13-generic
root=UUID=2d36e902-cd10-47a1-af4d-3eb85b8d97d6 ro
memmap=0x100000$0x38900000 splash

When I install grub-pc it asked me for kernel parameters and a placed
memmap=0x100000$0x38900000 as my ram has some bad blocks there. The
output of that line in grub.cfg was something like this:

        linux   /boot/vmlinuz-2.6.31-13-generic
root=UUID=2d36e902-cd10-47a1-af4d-3eb85b8d97d6 ro
memmap=0x100000/usr/sbin/update-grubx38900000  splash

which obviously won't let it boot. Edited /etc/default/grub to:

GRUB_CMDLINE_LINUX_DEFAULT="splash"
GRUB_CMDLINE_LINUX='memmap=0x100000\$0x38900000'

(note the single quote, otherwise it would have been GRUB_CMDLINE_LINUX="memmap=0x100000\\\$0x38900000")
So the output is now:

        linux   /boot/vmlinuz-2.6.31-13-generic
root=UUID=2d36e902-cd10-47a1-af4d-3eb85b8d97d6 ro
memmap=0x100000\$0x38900000  splash

and it boots successfully

I would expect that pasting the text as is would work like before
without resorting to backslashes.

I think this bug is related to #445952

ProblemType: Bug
Architecture: i386
Date: Sun Oct 11 09:54:07 2009
DistroRelease: Ubuntu 9.10
Package: grub-pc 1.97~beta3-1ubuntu8
ProcEnviron:
 PATH=(custom, user)
 LANG=en_PH.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-13.43-generic
SourcePackage: grub2
Uname: Linux 2.6.31-13-generic i686
XsessionErrors:
 (gnome-settings-daemon:3325): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:3325): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:3546): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:3564): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:3435): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.2/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
grub2 parses kernel parameters with $ as shell variables
https://bugs.launchpad.net/bugs/448413
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list