Skip to content
Snippets Groups Projects
grub.pp 441 B
Newer Older
Adam Lewenberg's avatar
Adam Lewenberg committed
#
# Manage grub.  Currently, we fix an error in the config file that keeps the
# timeout for console from working correctly on Red Hat systems.

class base::grub {
    $file = '/boot/grub/grub.conf'

    case $operatingsystem {
        'redhat': {
            exec { 'cleangrubconf':
                command => "sed -i -e 's/--timeout/-timeout/' $file",
                onlyif  => "grep -- '--timeout' $file",
            }
        }
    }
}