Skip to content

Commit

Permalink
fixes #24690 - add symlink grub2/boot to ../boot
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam authored and mmoll committed Aug 23, 2018
1 parent 69bf82a commit 284dd79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/tftp/netboot.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
) inherits foreman_proxy::tftp::netboot::params {
ensure_packages($packages, { ensure => 'present', })

# The symlink from grub2/boot to boot is needed for UEFI HTTP boot
file {"${root}/grub2/boot":
ensure => 'link',
target => '../boot',
}

case $grub_installation_type {
'redhat_exec': {
$efi_lib_dir = '/usr/lib/grub/x86_64-efi'
Expand Down
5 changes: 5 additions & 0 deletions spec/classes/foreman_proxy__tftp__netboot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
end

it { is_expected.to compile.with_all_deps }

it 'should create grub2 boot symlink' do
should contain_file("/tftproot/grub2/boot").
with_ensure('link').with_target("../boot")
end
end
end
end

0 comments on commit 284dd79

Please sign in to comment.