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

Submitter:  Jakub Jermar <jermar>
Submitted:  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:  other
Release:  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>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.9