Debian Bug report logs - #550319
grub-pc: grub2 does not honor quoted kernel command line arguments

version graph

Package: grub-pc; Maintainer for grub-pc is GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>; Source for grub-pc is src:grub2 (PTS, buildd, popcon).

Reported by: Norbert Preining <preining@logic.at>

Date: Fri, 9 Oct 2009 06:48:05 UTC

Severity: important

Tags: fixed-upstream

Found in versions 1.97~beta4-1ubuntu5, grub2/1.97~beta4-1

Fixed in version grub2/1.99-1

Forwarded to http://savannah.gnu.org/bugs/index.php?27641

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, preining@logic.at, sony-vaio-z-series@lists.launchpad.net, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Fri, 09 Oct 2009 06:48:08 GMT) (full text, mbox, link).


Acknowledgement sent to Norbert Preining <preining@logic.at>:
New Bug report received and forwarded. Copy sent to preining@logic.at, sony-vaio-z-series@lists.launchpad.net, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 09 Oct 2009 06:48:08 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Norbert Preining <preining@logic.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Fri, 09 Oct 2009 15:37:11 +0900
Package: grub-pc
Version: 1.97~beta4-1
Severity: important

As you can see below my kernel cmd line is
	linux	/boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci 
so there are quotes around the argument for acpi_osi.

Unfortunately grub-pc does NOT honor that quotes and strips them
before passing that to the kernel as can be seen from the boot messages:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro acpi_osi=!Windows 2006 nmi_watchdog=0 reboot=pci

To be sure I added a printk to params.c from the kernel that shows that
current argument and value:
[    0.000000] DDDD param=BOOT_IMAGE, val=.../boot/vmlinuz-2.6.32-rc3...
[    0.000000] DDDD param=root, val=.../dev/sda3...
[    0.000000] DDDD param=ro, val=...<NULL>...
[    0.000000] DDDD param=acpi_osi, val=...!Windows...
[    0.000000] DDDD param=2006, val=...<NULL>...
[    0.000000] DDDD param=nmi_watchdog, val=...0...
[    0.000000] DDDD param=reboot, val=...pci...

Here we go, that is completely hosed.

That is in fact a SERIOUS bug and a severe regression against grub1 where
it was working.

No combinations of \\\""" '"'" or whatever could convince grub2 to take
the quotes over to the kernel.

Please consider this a serious bug, forward it upstream.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda3 / ext3 rw,noatime,errors=remount-ro,user_xattr,data=writeback 0 0
/dev/sda2 /xp fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/loop0 /media/TLDVD iso9660 ro,relatime 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
set default=0
if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.32-rc3" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci 
	initrd	/boot/initrd.img-2.6.32-rc3
}
menuentry "Debian GNU/Linux, Linux 2.6.32-rc3 (recovery mode)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro single acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
	initrd	/boot/initrd.img-2.6.32-rc3
}
menuentry "Debian GNU/Linux, Linux 2.6.31.2-rc1" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.31.2-rc1 root=/dev/sda3 ro acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci 
	initrd	/boot/initrd.img-2.6.31.2-rc1
}
menuentry "Debian GNU/Linux, Linux 2.6.31.2-rc1 (recovery mode)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.31.2-rc1 root=/dev/sda3 ro single acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
	initrd	/boot/initrd.img-2.6.31.2-rc1
}
menuentry "Debian GNU/Linux, Linux 2.6.31" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.31 root=/dev/sda3 ro acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci 
	initrd	/boot/initrd.img-2.6.31
}
menuentry "Debian GNU/Linux, Linux 2.6.31 (recovery mode)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.31 root=/dev/sda3 ro single acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
	initrd	/boot/initrd.img-2.6.31
}
menuentry "Debian GNU/Linux, Linux 2.6.30" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.30 root=/dev/sda3 ro acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci 
	initrd	/boot/initrd.img-2.6.30
}
menuentry "Debian GNU/Linux, Linux 2.6.30 (recovery mode)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux	/boot/vmlinuz-2.6.30 root=/dev/sda3 ro single acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
	initrd	/boot/initrd.img-2.6.30
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set 961635f4-762d-4136-a3d5-35fca8e4f3d8
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###

# For booting Microsoft Windows
menuentry "Microsoft XP" {
	set root=(hd0,2)
	drivemap -s (hd0) ${root}
	chainloader +1
}

menuentry "Windows Vista Rescue Partition" {
	set root=(hd0,1)
	chainloader +1
}

# 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 ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-rc3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]       1.5.27       Debian configuration management sy
ii  grub-common                 1.97~beta4-1 GRand Unified Bootloader, version 
ii  libc6                       2.9-27       GNU C Library: Shared libraries
ii  ucf                         3.0022       Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.5      common files for the Debian Deskto
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/linux_cmdline: acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/sda
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Fri, 09 Oct 2009 07:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Norbert Preining <preining@logic.at>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 09 Oct 2009 07:06:05 GMT) (full text, mbox, link).


Message #10 received at 550319@bugs.debian.org (full text, mbox, reply):

From: Norbert Preining <preining@logic.at>
To: Debian Bug Tracking System <550319@bugs.debian.org>
Subject: Re: Bug#550319: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Fri, 9 Oct 2009 15:53:04 +0900
forwarded 550319 http://savannah.gnu.org/bugs/index.php?27641
thanks

On Fri, 09 Oct 2009, Norbert Preining wrote:
> Please consider this a serious bug, forward it upstream.

Done that myself.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining                                        Associate Professor
JAIST Japan Advanced Institute of Science and Technology   preining@jaist.ac.jp
Vienna University of Technology                               preining@logic.at
Debian Developer (Debian TeX Task Force)                    preining@debian.org
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
PERRANZABULOE (n.)
One of those spray things used to wet ironing with.
			--- Douglas Adams, The Meaning of Liff




Set Bug forwarded-to-address to 'http://savannah.gnu.org/bugs/index.php?27641'. Request was from Norbert Preining <preining@logic.at> to control@bugs.debian.org. (Fri, 09 Oct 2009 07:06:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Fri, 09 Oct 2009 14:03:08 GMT) (full text, mbox, link).


Acknowledgement sent to ajmctaggart <ajmctaggart@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 09 Oct 2009 14:03:08 GMT) (full text, mbox, link).


Message #17 received at 550319@bugs.debian.org (full text, mbox, reply):

From: ajmctaggart <ajmctaggart@gmail.com>
To: Norbert Preining <preining@logic.at>, 550319@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: [Sony-vaio-z-series] Bug#550319: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Fri, 9 Oct 2009 06:51:21 -0700
[Message part 1 (text/plain, inline)]
Norbert,

Obviously you are the expert here, not me.  But, in my recent Googling, I
did discover this thread, that although I haven't used, does it fit your
needs?

http://ubuntuforums.org/archive/index.php/t-1244790.html
http://ubuntuforums.org/archive/index.php/t-1244790.html

Regards,
Anthony

On Thu, Oct 8, 2009 at 11:37 PM, Norbert Preining <preining@logic.at> wrote:

> Package: grub-pc
> Version: 1.97~beta4-1
> Severity: important
>
> As you can see below my kernel cmd line is
>        linux   /boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
> so there are quotes around the argument for acpi_osi.
>
> Unfortunately grub-pc does NOT honor that quotes and strips them
> before passing that to the kernel as can be seen from the boot messages:
>
> [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-rc3
> root=/dev/sda3 ro acpi_osi=!Windows 2006 nmi_watchdog=0 reboot=pci
>
> To be sure I added a printk to params.c from the kernel that shows that
> current argument and value:
> [    0.000000] DDDD param=BOOT_IMAGE, val=.../boot/vmlinuz-2.6.32-rc3...
> [    0.000000] DDDD param=root, val=.../dev/sda3...
> [    0.000000] DDDD param=ro, val=...<NULL>...
> [    0.000000] DDDD param=acpi_osi, val=...!Windows...
> [    0.000000] DDDD param=2006, val=...<NULL>...
> [    0.000000] DDDD param=nmi_watchdog, val=...0...
> [    0.000000] DDDD param=reboot, val=...pci...
>
> Here we go, that is completely hosed.
>
> That is in fact a SERIOUS bug and a severe regression against grub1 where
> it was working.
>
> No combinations of \\\""" '"'" or whatever could convince grub2 to take
> the quotes over to the kernel.
>
> Please consider this a serious bug, forward it upstream.
>
>
> -- Package-specific info:
>
> *********************** BEGIN /proc/mounts
> /dev/sda3 / ext3 rw,noatime,errors=remount-ro,user_xattr,data=writeback 0 0
> /dev/sda2 /xp fuseblk
> rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
> /dev/loop0 /media/TLDVD iso9660 ro,relatime 0 0
> *********************** END /proc/mounts
>
> *********************** BEGIN /boot/grub/device.map
> (hd0)   /dev/sda
> *********************** END /boot/grub/device.map
>
> *********************** BEGIN /boot/grub/grub.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/grub-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
>
> ### BEGIN /etc/grub.d/00_header ###
> set default=0
> if terminal_input console ; then true ; else
>  # For backward compatibility with versions of terminal.mod that don't
>  # understand terminal_input
>  terminal console
> fi
> if terminal_output console ; then true ; else
>  # For backward compatibility with versions of terminal.mod that don't
>  # understand terminal_output
>  terminal console
> fi
> set timeout=5
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/05_debian_theme ###
> set menu_color_normal=cyan/blue
> set menu_color_highlight=white/blue
> ### END /etc/grub.d/05_debian_theme ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry "Debian GNU/Linux, Linux 2.6.32-rc3" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.32-rc3
> }
> menuentry "Debian GNU/Linux, Linux 2.6.32-rc3 (recovery mode)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.32-rc3 root=/dev/sda3 ro single
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.32-rc3
> }
> menuentry "Debian GNU/Linux, Linux 2.6.31.2-rc1" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.31.2-rc1 root=/dev/sda3 ro
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.31.2-rc1
> }
> menuentry "Debian GNU/Linux, Linux 2.6.31.2-rc1 (recovery mode)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.31.2-rc1 root=/dev/sda3 ro single
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.31.2-rc1
> }
> menuentry "Debian GNU/Linux, Linux 2.6.31" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.31 root=/dev/sda3 ro acpi_osi="!Windows
> 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.31
> }
> menuentry "Debian GNU/Linux, Linux 2.6.31 (recovery mode)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.31 root=/dev/sda3 ro single
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.31
> }
> menuentry "Debian GNU/Linux, Linux 2.6.30" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.30 root=/dev/sda3 ro acpi_osi="!Windows
> 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.30
> }
> menuentry "Debian GNU/Linux, Linux 2.6.30 (recovery mode)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux   /boot/vmlinuz-2.6.30 root=/dev/sda3 ro single
> acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
>        initrd  /boot/initrd.img-2.6.30
> }
> ### END /etc/grub.d/10_linux ###
>
> ### BEGIN /etc/grub.d/20_memtest86+ ###
> menuentry "Memory test (memtest86+)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux16 /boot/memtest86+.bin
> }
> menuentry "Memory test (memtest86+, serial console 115200)" {
>        insmod ext2
>        set root=(hd0,3)
>        search --no-floppy --fs-uuid --set
> 961635f4-762d-4136-a3d5-35fca8e4f3d8
>        linux16 /boot/memtest86+.bin console=ttyS0,115200n8
> }
> ### END /etc/grub.d/20_memtest86+ ###
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> ### END /etc/grub.d/30_os-prober ###
>
> ### BEGIN /etc/grub.d/40_custom ###
>
> # For booting Microsoft Windows
> menuentry "Microsoft XP" {
>        set root=(hd0,2)
>        drivemap -s (hd0) ${root}
>        chainloader +1
> }
>
> menuentry "Windows Vista Rescue Partition" {
>        set root=(hd0,1)
>        chainloader +1
> }
>
> # 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 ###
> *********************** END /boot/grub/grub.cfg
>
> -- System Information:
> Debian Release: squeeze/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.32-rc3 (SMP w/2 CPU cores; PREEMPT)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages grub-pc depends on:
> ii  debconf [debconf-2.0]       1.5.27       Debian configuration
> management sy
> ii  grub-common                 1.97~beta4-1 GRand Unified Bootloader,
> version
> ii  libc6                       2.9-27       GNU C Library: Shared
> libraries
> ii  ucf                         3.0022       Update Configuration File:
> preserv
>
> grub-pc recommends no packages.
>
> Versions of packages grub-pc suggests:
> ii  desktop-base                  5.0.5      common files for the Debian
> Deskto
> ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM
> filesystem
>
> -- debconf information:
>  grub2/kfreebsd_cmdline:
> * grub2/linux_cmdline: acpi_osi="!Windows 2006" nmi_watchdog=0 reboot=pci
> * grub-pc/chainload_from_menu.lst: true
>  grub-pc/kopt_extracted: false
> * grub-pc/install_devices: /dev/sda
>  grub-pc/postrm_purge_boot_grub: false
>  grub2/kfreebsd_cmdline_default: quiet
> * grub2/linux_cmdline_default:
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~sony-vaio-z-series<https://launchpad.net/%7Esony-vaio-z-series>
> Post to     : sony-vaio-z-series@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~sony-vaio-z-series<https://launchpad.net/%7Esony-vaio-z-series>
> More help   : https://help.launchpad.net/ListHelp
>
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Sun, 11 Oct 2009 04:06:03 GMT) (full text, mbox, link).


Acknowledgement sent to Norbert Preining <preining@logic.at>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Sun, 11 Oct 2009 04:06:03 GMT) (full text, mbox, link).


Message #22 received at 550319@bugs.debian.org (full text, mbox, reply):

From: Norbert Preining <preining@logic.at>
To: ajmctaggart <ajmctaggart@gmail.com>
Cc: 550319@bugs.debian.org
Subject: Re: [Sony-vaio-z-series] Bug#550319: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Sun, 11 Oct 2009 06:00:10 +0200
On Fr, 09 Okt 2009, ajmctaggart wrote:
> Obviously you are the expert here, not me.  But, in my recent Googling, I
> did discover this thread, that although I haven't used, does it fit your
> needs?
> 
> http://ubuntuforums.org/archive/index.php/t-1244790.html
> http://ubuntuforums.org/archive/index.php/t-1244790.html

No because I have the right quotes in grub.cfg, so adding them in
addifferent way with 40_custom wouldn't help.

The problem is grub itself that reads in grub.cfg and strips the
quotes off, not the update-grub script.

See my grub.cfg entry, as said, it contains the right quotes:

> > menuentry "Debian GNU/Linux, Linux 2.6.31" {
> >        insmod ext2
> >        set root=(hd0,3)
> >        search --no-floppy --fs-uuid --set
> > 961635f4-762d-4136-a3d5-35fca8e4f3d8
> >        linux   /boot/vmlinuz-2.6.31 root=/dev/sda3 ro acpi_osi="!Windows
> > 2006" nmi_watchdog=0 reboot=pci
> >        initrd  /boot/initrd.img-2.6.31
> > }

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining                                        Associate Professor
JAIST Japan Advanced Institute of Science and Technology   preining@jaist.ac.jp
Vienna University of Technology                               preining@logic.at
Debian Developer (Debian TeX Task Force)                    preining@debian.org
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
DULUTH (adj.)
The smell of a taxi out of which people have just got.
			--- Douglas Adams, The Meaning of Liff




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Mon, 02 Nov 2009 11:27:07 GMT) (full text, mbox, link).


Acknowledgement sent to BVK <bvk.groups@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Mon, 02 Nov 2009 11:27:07 GMT) (full text, mbox, link).


Message #27 received at 550319@bugs.debian.org (full text, mbox, reply):

From: BVK <bvk.groups@gmail.com>
To: 550319@bugs.debian.org
Subject: It is working with proper quots and update-grub
Date: Mon, 2 Nov 2009 16:37:06 +0530
With below quoting and executing update-grub afterwards, it is passed
to linux kernel as expected.

GRUB_CMDLINE_LINUX=" foo=\\\"bar baz\\\" "



-- 
bvk-chaitanya




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Fri, 11 Dec 2009 21:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to James Clark <jamesc@jamesc.co.nz>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 11 Dec 2009 21:00:03 GMT) (full text, mbox, link).


Message #32 received at 550319@bugs.debian.org (full text, mbox, reply):

From: James Clark <jamesc@jamesc.co.nz>
To: 550319@bugs.debian.org
Subject: escaping quotations in /etc/default/grub matters
Date: Sat, 12 Dec 2009 09:57:03 +1300
The following works for me:

/etc/default/grub containing:
GRUB_CMDLINE_LINUX="acpi_osi=\"Linux\""
generates the following line in /boot/grub/grub.cfg:
linux   /boot/vmlinuz-2.6.30-2-686 root=UUID=ashortfakeuuid ro
acpi_osi="Linux" quiet

I had originally used "acpi_osi="Linux"" without escaping the quotes
around Linux, meaning that the resulting grub.cfg file would contain
acpi=Linux (unquoted) and then that option was ignored during boot.

Put a #comment in /etc/default/grub to prompt the user that quotes
need escaping and that they should then inspect the resulting grub.cfg
satisfactory.  Something so simple would have saved quite some time
and frustration.




Information forwarded to debian-bugs-dist@lists.debian.org, jelot-debian@jelot.it, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Thu, 06 May 2010 11:27:07 GMT) (full text, mbox, link).


Acknowledgement sent to Jean-Louis <jelot-debian@jelot.it>:
Extra info received and forwarded to list. Copy sent to jelot-debian@jelot.it, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Thu, 06 May 2010 11:27:07 GMT) (full text, mbox, link).


Message #37 received at 550319@bugs.debian.org (full text, mbox, reply):

From: Jean-Louis <jelot-debian@jelot.it>
To: Debian Bug Tracking System <550319@bugs.debian.org>
Subject: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Thu, 06 May 2010 13:24:34 +0200
Package: grub-pc
Version: 1.97~beta4-1ubuntu5
Severity: normal

I have filled a comment in launchpad with a possible fix.

I have also a PPA with (a supposed :P ) patch, but it is for Ubuntu Karmic.

<https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/445952/comments/6>




Information forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#550319; Package grub-pc. (Fri, 07 Jan 2011 16:15:09 GMT) (full text, mbox, link).


Acknowledgement sent to Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Fri, 07 Jan 2011 16:15:10 GMT) (full text, mbox, link).


Message #42 received at 550319@bugs.debian.org (full text, mbox, reply):

From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: Jean-Louis <jelot-debian@jelot.it>, 550319@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#550319: grub-pc: grub2 does not honor quoted kernel command line arguments
Date: Fri, 07 Jan 2011 17:13:15 +0100
[Message part 1 (text/plain, inline)]
tag 550319 fixed-upstream
thanks
Fixed by using Szymon's patch
On 05/06/2010 01:24 PM, Jean-Louis wrote:
> Package: grub-pc
> Version: 1.97~beta4-1ubuntu5
> Severity: normal
>
> I have filled a comment in launchpad with a possible fix.
>
> I have also a PPA with (a supposed :P ) patch, but it is for Ubuntu Karmic.
>
> <https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/445952/comments/6>
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[signature.asc (application/pgp-signature, attachment)]

Added tag(s) fixed-upstream. Request was from Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> to control@bugs.debian.org. (Fri, 07 Jan 2011 16:15:17 GMT) (full text, mbox, link).


Marked as fixed in versions grub2/1.99-1. Request was from Stéphane Aulery <saulery@free.fr> to control@bugs.debian.org. (Sat, 18 Oct 2014 21:15:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 14:47:50 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.