help-grub
[Top][All Lists]
Advanced

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

Re: How to specify filenames containing spaces in kernel parameters?


From: Andrei Borzenkov
Subject: Re: How to specify filenames containing spaces in kernel parameters?
Date: Sun, 29 Nov 2015 19:25:36 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

29.11.2015 08:49, JM Doule пишет:
> How can a filename that contains spaces be specified in a kernel
> parameter?
> 

linux /vmlinuz "foo bar"

In GRUB "foo bar" will be quoted and passed as single parameter to
"linux" command, then GRUB will add quotes again before building kernel
command line so kernel will see "foo bar" (with double quotes). What
happens later depends on kernel and/or programs that parse /proc/cmdline.

In general it is better to avoid spaces, it is always asking for
problems sooner or later.

> Given a filename such as "key1", a line could be written in Arch:
> GRUB_CMDLINE_LINUX="cryptdevice=UUID=<uuid>:<vgname> ...
> cryptkey=/dev/disk/by-uuid/<uuid>:<fstype>:/key1"
> 
> But if the filename were "crypt key1" instead, how should the line be
> written?
> 

GRUB_CMDLINE_LINUX=" ...  \"crypt key1\" ...  "



reply via email to

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