From 3a2abbfe703b1445eb81fc986db120a7b9734901 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Mon, 2 Jun 2025 12:48:37 +0200 Subject: [PATCH 1/3] Fixes #38463 - Add mmx64.efi file to generated bootdisk Bootdisks generated by Foreman don't include the mmx64.efi file. Under certain circumstances, it may be necessary to boot the system for provisioning. (cherry picked from commit 3fc14257e969476abe644c4e969ce49d057f5806) --- app/services/foreman_bootdisk/iso_generator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/foreman_bootdisk/iso_generator.rb b/app/services/foreman_bootdisk/iso_generator.rb index 5fb0362..5ecec9a 100644 --- a/app/services/foreman_bootdisk/iso_generator.rb +++ b/app/services/foreman_bootdisk/iso_generator.rb @@ -133,6 +133,7 @@ def self.generate(opts = {}) File.join(wd, 'build', 'grub-hdd.cfg').to_s => 'GRUB.CFG', File.join(Setting[:bootdisk_grub2_dir], 'grubx64.efi').to_s => 'GRUBX64.EFI', File.join(Setting[:bootdisk_grub2_dir], 'shimx64.efi').to_s => 'BOOTX64.EFI', + File.join(Setting[:bootdisk_grub2_dir], 'mmx64.efi').to_s => 'MMX64.EFI', }.each do |src, dest| raise(Foreman::Exception.new(N_('Ensure %{file} is readable (or update "Grub2 directory" setting)'), file: src)) unless File.exist?(src) raise(Foreman::Exception.new(N_('Unable to mcopy %{file}'), file: src)) unless system("mcopy -m -i #{efibootimg} '#{src}' '#{"::/EFI/BOOT/#{dest}"}'") From 64680b5b1cf88ad2a2fd21f6bc130ea0bfb12b46 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Tue, 16 Sep 2025 13:43:02 +0200 Subject: [PATCH 2/3] Add GitHub Actions workflow for release process (cherry picked from commit 49b013097891bf097c65f01168f6c4f7f5f6c0aa) --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0ce89cf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +--- +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Release gem + runs-on: ubuntu-latest + environment: release + if: github.repository_owner == 'theforeman' + + permissions: + id-token: write + + steps: + - uses: voxpupuli/ruby-release@v0 From 8580bba15e717e18110cf44e3c1e113e98e3ac9f Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Fri, 19 Sep 2025 14:39:13 +0200 Subject: [PATCH 3/3] Bump version to 22.0.4 --- lib/foreman_bootdisk/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman_bootdisk/version.rb b/lib/foreman_bootdisk/version.rb index 97c0148..19d7823 100644 --- a/lib/foreman_bootdisk/version.rb +++ b/lib/foreman_bootdisk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ForemanBootdisk - VERSION = '22.0.3' + VERSION = '22.0.4' end