Kit 299a1c1afb main/openrc: fix parsing quoted kernel options in firstboot
Quoted kernel options in /proc/cmdline look like this:

modules=something "ssh_key=ssh-rsa foobar user@foo" quiet

Without the eval this would be parsed as: opt='modules=something'
opt='"ssh_key=ssh-rsa' opt='foobar' opt='user@foo"' opt='quiet'

With the eval in this branch the options are parsed correctly.

Since ssh keys need spaces and therefor must be quoted, passing ssh_key
by kernel option cannot work as currently implemented.

fixes #9504
2020-05-29 10:02:33 +00:00
..