bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #49937] Cannot pass a single backslash in multiboot cmdline


From: Jakub Jermar
Subject: [bug #49937] Cannot pass a single backslash in multiboot cmdline
Date: Mon, 26 Dec 2016 18:38:23 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?49937>

                 Summary: Cannot pass a single backslash in multiboot cmdline
                 Project: GNU GRUB
            Submitted by: jermar
            Submitted on: Mon 26 Dec 2016 06:38:21 PM GMT
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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:

<ul>
<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
</ul>

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

I am using grub 2.02~beta2, revision
bc220962e366b1b46769ed6f9fa5be603ba58ab5.

This is my grub.cfg:

<pre>
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
}
</pre>

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49937>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]