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: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: otherReproducibility: 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:

<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.

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
  • -unavailable- added by jermar (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1