grub: Fix kernel argument checking for Fedora 21.
This commit is contained in:
parent
d22002f7f7
commit
c7272c4a3e
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ define grub::kernelparam($ensure = "present") {
|
|||
exec { "grubby --update-kernel=ALL --args=${name}":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => $::operatingsystem ? {
|
||||
"fedora" => "egrep '^[[:space:]]*linux[[:space:]].* ${name}( .*)?' /boot/grub2/grub.cfg",
|
||||
"fedora" => "egrep '^[[:space:]]*linux[0-9]*[[:space:]].* ${name}( .*)?' /boot/grub2/grub.cfg",
|
||||
default => "grubby --info=`grubby --default-kernel` | egrep '^args=\"(.* )?${name}( .*)?\"'",
|
||||
},
|
||||
tag => "bootstrap",
|
||||
|
@ -55,7 +55,7 @@ define grub::kernelparam($ensure = "present") {
|
|||
exec { "grubby --update-kernel=ALL --remove-args=${name}":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
onlyif => $::operatingsystem ? {
|
||||
"fedora" => "egrep '^[[:space:]]*linux[[:space:]].* ${name}( .*)?' /boot/grub2/grub.cfg",
|
||||
"fedora" => "egrep '^[[:space:]]*linux[0-9]*[[:space:]].* ${name}( .*)?' /boot/grub2/grub.cfg",
|
||||
default => "grubby --info=`grubby --default-kernel` | egrep '^args=\"(.* )?${name}( .*)?\"'",
|
||||
},
|
||||
tag => "bootstrap",
|
||||
|
|
Loading…
Add table
Reference in a new issue