bugGNU GRUB - Bugs: bug #49937, Cannot pass a single backslash in...


You are not allowed to post comments on this tracker with your current authentication level.

bug #49937: Cannot pass a single backslash in multiboot cmdline

Submitted by:  Jakub Jermar <jermar>
Submitted on:  Mon 26 Dec 2016 06:38:21 PM UTC  
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  other Reproducibility:  Every Time
Planned Release:  None

Mon 26 Dec 2016 06:38:21 PM UTC, original submission:

I am observing a strange behavior when passing boot arguments with a backslash to the kernel (the multiboot cmd_line via the multiboot command in grub.cfg). I would like to pass e.g. foo\bar to the kernel, but to no avail. I tried:

<li>foo\bar gets passed as foobar
<li>foo\\bar gets passed as foo\\bar
<li>'foo\bar' gets passed as foo\\bar
<li>"foo\bar" gets passed as foo\\bar

Note that the backslash gets doubled when I try to escape it.

I am using grub 2.02~beta2, revision

This is my grub.cfg:

set default=0
set timeout=10

insmod vbe
insmod vga

menuentry 'HelenOS 0.6.0' --class helenos --class os {
multiboot /boot/kernel.bin console=devices/\hw\pci0\00:01.0\com1\a
module /boot/ns /boot/ns
module /boot/loader /boot/loader
module /boot/init /boot/init
module /boot/locsrv /boot/locsrv
module /boot/rd /boot/rd
module /boot/vfs /boot/vfs
module /boot/logger /boot/logger
module /boot/ext4fs /boot/ext4fs
module /boot/initrd.img /boot/initrd.img

HelenOS is a multiboot-compliant microkernel, but you need a modified version of it that makes use of the multiboot info cmd_line argument to be able to reproduce this issue.

Jakub Jermar <jermar>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jermar (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4