The PVE Kernel is newer than the default Debian one, so doesn't need grub-set-default anymore.

This commit is contained in:
gardouille 2015-12-10 11:27:35 +01:00
parent c6a65891c4
commit e9874b890f
3 changed files with 2 additions and 21 deletions

View File

@ -9,3 +9,4 @@
##### Changes
* Now use "proxmox4::…" instead of "proxmox::…"
* Doesn't need a specific kernel like ProxmoxV3. There is only a 4.x kernel.
* The PVE Kernel is newer than the default Debian one, so doesn't need grub-set-default anymore.

View File

@ -42,10 +42,8 @@ class proxmox4::hypervisor::install {
->
package { $proxmox4::hypervisor::kernel_pkg_name:
ensure => $proxmox4::hypervisor::ve_pkg_ensure,
notify => Exec['update_grub','grub_reboot'],
notify => Exec['update_grub'],
}
# The kernel that allow KVM + OpenVZ is older than the standard Debian's
# kernel, so grub reboot must be used
}
@ -55,11 +53,4 @@ class proxmox4::hypervisor::install {
refreshonly => true,
}
# Choose a different line in the grub
exec { 'grub_reboot':
command => 'grub-reboot 2',
refreshonly => true,
}
} # Private class: proxmox4::hypervisor::install

View File

@ -47,17 +47,6 @@ class proxmox4::hypervisor::preconfig {
key_server => 'keyserver.ubuntu.com',
}
# Set the grub default to saved to be able to use grub-set-default during
# the installation
if ! defined(Augeas['grub_default']) {
augeas { 'grub_default':
context => '/files/etc/default/grub',
changes => [
'set GRUB_DEFAULT saved',
],
}
}
if ! defined(File['/etc/modules-load.d']) {
file { '/etc/modules-load.d':
ensure => directory,