]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/base_installation/manifests/grub.pp
Fix package dependencies for base installation
[perso/Immae/Projets/Puppet.git] / modules / base_installation / manifests / grub.pp
CommitLineData
7fed35a4 1class base_installation::grub inherits base_installation {
ba2cf1b5
IB
2 ensure_packages(['grub'])
3
7fed35a4 4 # unless empty($base_installation::grub_device) {
ba2cf1b5 5 # exec { 'install GRUB':
7fed35a4 6 # command => "/usr/bin/grub-install --target=i386-pc $base_installation::device",
ba2cf1b5
IB
7 # subscribe => Package["grub"],
8 # }
9 # }
10
11 file_line { "/etc/default/grub#GRUB_CMDLINE_LINUX":
22049605
IB
12 path => "/etc/default/grub",
13 line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"',
14 match => '^GRUB_CMDLINE_LINUX=',
15 require => Package["grub"],
ba2cf1b5 16 }
ba2cf1b5
IB
17
18 # exec { 'update GRUB config':
19 # command => "/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg",
20 # refreshonly => true
21 # }
22}