Menu

Quotation mark in kernel command line?

2016-03-06
2016-03-20
  • Hexchain Tong

    Hexchain Tong - 2016-03-06

    I'm trying to add something like acpi_osi="!Windows 2012" in kernel comand line, but rEFInd doesn't seem to parse it correctly. Stanzas in $ESP/refind/refind.conf is in use:

    menuentry Arch {
        volume XXXX-XX-XX-XXXX
        loader vmlinuz-linux
        initrd initramfs-linux.img
        options "root=/dev/sdaX rw initrd=intel-ucode.img"
        submenuentry "Single user mode" {
            add_options "single"
        }
        submenuentry "Fallback" {
            initrd initramfs-linux-fallback.img
        }
    }
    

    I've tried using backslash to escape the quotation mark but no luck. If I put acpi_osi=\"!Windows 2012\" in it, I got acpi_osi=\ for kernel.

    How should I correctly escape?

    Thanks in advance.

     
  • Roderick W. Smith

    To include a quote mark, double it up, as in:

    add_options "acpi_osi=""!Windows 2012"" "
    
     
  • Hexchain Tong

    Hexchain Tong - 2016-03-16

    Thanks! Is it better to make it clear in documents?

     
  • Roderick W. Smith

    It is covered in the documentation; see:

    http://www.rodsbooks.com/refind/linux.html

    Search on quotes. Unfortunately, the topic is an obscure one, so it's ended up buried, and I don't see any way around that aside from over-emphasizing it, which in turn would make other topics harder to find.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.