summaryrefslogtreecommitdiffstats
path: root/pcmemtest-unsigned-x64.spec
diff options
context:
space:
mode:
Diffstat (limited to 'pcmemtest-unsigned-x64.spec')
-rw-r--r--pcmemtest-unsigned-x64.spec13
1 files changed, 9 insertions, 4 deletions
diff --git a/pcmemtest-unsigned-x64.spec b/pcmemtest-unsigned-x64.spec
index 9420178..8d5f3d8 100644
--- a/pcmemtest-unsigned-x64.spec
+++ b/pcmemtest-unsigned-x64.spec
@@ -11,6 +11,7 @@ Summary: Stand-alone memory tester for x86 and x86-64 architecture comput
License: GPLv2
URL: https://github.com/martinwhitaker/pcmemtest
Source0: https://github.com/martinwhitaker/pcmemtest/archive/v%{version}/pcmemtest-%{version}.tar.gz
+Source1: 20_pcmemtest
BuildRequires: gcc
ExclusiveArch: x86_64
@@ -56,8 +57,11 @@ cd build64
%install
cd build64
mkdir -p %{buildroot}/{boot,%{efi_esp_dir}}
-install -m 0644 memtest.efi %{buildroot}/%{efi_esp_dir}/memtest.efi
-install -m 0644 memtest.bin %{buildroot}/boot/memtest.bin
+install -m 0644 memtest.efi %{buildroot}/%{efi_esp_dir}/pcmemtest.efi
+install -m 0644 memtest.bin %{buildroot}/boot/pcmemtest.bin
+
+mkdir -p %{buildroot}%{_sysconfdir}/grub.d
+install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/grub.d
%files
@@ -66,11 +70,12 @@ install -m 0644 memtest.bin %{buildroot}/boot/memtest.bin
%files efi
-%{efi_esp_dir}/memtest.efi
+%{efi_esp_dir}/pcmemtest.efi
%files bios
-/boot/memtest.bin
+%{_sysconfdir}/grub.d/20_pcmemtest
+/boot/pcmemtest.bin
%changelog