Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kexec-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def grub2_kernel_entries(config)
mount_point = uuid_to_mount_point(entry[1])
name = entry[0].strip
kernel = "#{mount_point}#{entry[3]}"
initrd = "#{mount_point}#{entry[6]}"
initrd = "#{mount_point}#{entry[6].gsub(/\/(?:[^\s\/]+\/)*(?:amd|intel)-ucode\.img/,'').strip}"
cmdline = entry[4].strip
# Sanity check the kernel and initrd; they must be present
if !File.readable?(kernel) then
Expand Down