Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values of kernel parameters cannot contain spacesNospacevalue #12

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

traylenator
Copy link
Contributor

While according

https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-para

parameter values can be specified as a space separated list

param="A B"

it is not obvious that grubby supports such an addition.

So best to fail if presented with a space containing value.

If ever required check branch here
#11

A new type is added

```puppet
grubby::kernel_opt{'foo':
  ensure => present,
  value  => 'bar',
  scope  => 'ALL',
}
```

The previous hash parameter `grubby::kernel_opts` is still valid
and now uses `grubby::kernel_opt` internally.

Motivation here is to increase flexibility of module allowing
kernel parameters to be added by other distinct modules.
While according

https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html

parameter values can be specified as a space separated list

```
param="A B"
```

it is not obvious that grubby supports such an addition.

So best to fail if presented with a space containing value.

If ever required check branch here
atsonkov#11
@traylenator
Copy link
Contributor Author

#8 first

@atsonkov atsonkov merged commit 42c5126 into atsonkov:master Mar 26, 2021
@traylenator
Copy link
Contributor Author

Thanks a lot for the speedy reviews and comments. I think for now we are there.

@traylenator traylenator deleted the nospacevalue branch March 26, 2021 14:35
@atsonkov atsonkov added the enhancement New feature or request label Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants