Skip to content
Snippets Groups Projects
Commit bc533771 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Add helper class for rebuilding Grub 2 config file.

Grub 2 builds its config file (/boot/grub2/grub.cfg) from templates
in /etc/grub.d, and settings in /etc/default/grub, and it needs to
be regenerated every time you change those templates or settings (or
when you install a new kernel, et.c).  This adds a class for doing
so, bootloader::grub2::rebuild_grub_cfg.
parent e9ed9c7a
No related branches found
No related tags found
No related merge requests found
# Copyright © 2017 Thomas Bellman, Linköping, Sweden
# Licensed under the GNU LGPL v3+; see the README file for more information.
/*
* Rebuild the Grub 2.x config file.
*/
class bootloader::grub2::rebuild_grub_cfg
{
exec {
'bootloader::grub2::rebuild_grub_cfg':
command => 'grub2-mkconfig -o /boot/grub2/grub.cfg',
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
refreshonly => true;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment