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

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to