Fix build with memtest86+ 6.00
memtest86+ 6.00-1 (in testing as of this date) adds and changes its
available binaries:
- /boot/memtest86+x32.bin
- /boot/memtest86+x32.efi
- /boot/memtest86+x64.bin
- /boot/memtest86+x64.efi
Future live-build functionality would ideally incorporate these new
binaries (x64 for amd64 builds, efi for grub-efi), but in the meantime,
this is an MVP update which supports either old memtest86.bin or new
memtest86+x32.bin.
Ryan Finnie authored 1 year, 5 months ago
Arnaud Rebillout committed 1 year, 5 months ago
55 | 55 | fi |
56 | 56 | |
57 | 57 | # Checking depends |
58 | _MEMTEST_BIN="${LB_MEMTEST}" | |
58 | 59 | case "${LB_MEMTEST}" in |
59 | 60 | memtest86) |
60 | 61 | Check_package chroot /boot/memtest86.bin memtest86 |
61 | 62 | ;; |
62 | 63 | |
63 | 64 | memtest86+) |
64 | Check_package chroot /boot/memtest86+.bin memtest86+ | |
65 | Check_package chroot /usr/share/doc/memtest86+/copyright memtest86+ | |
65 | 66 | ;; |
66 | 67 | esac |
67 | 68 | |
70 | 71 | |
71 | 72 | # Installing depends |
72 | 73 | Install_packages |
74 | ||
75 | case "${LB_MEMTEST}" in | |
76 | memtest86+) | |
77 | case "${LB_BUILD_WITH_CHROOT}" in | |
78 | true) | |
79 | [ -e "chroot/boot/${LB_MEMTEST}x32.bin" ] && _MEMTEST_BIN="${LB_MEMTEST}x32" | |
80 | ;; | |
81 | false) | |
82 | [ -e "/boot/${LB_MEMTEST}x32.bin" ] && _MEMTEST_BIN="${LB_MEMTEST}x32" | |
83 | ;; | |
84 | esac | |
85 | ;; | |
86 | esac | |
73 | 87 | |
74 | 88 | # Setting destination directory |
75 | 89 | case "${LB_INITRAMFS}" in |
88 | 102 | # Installing memtest |
89 | 103 | case "${LB_BUILD_WITH_CHROOT}" in |
90 | 104 | true) |
91 | cp -a chroot/boot/${LB_MEMTEST}.bin "${DESTDIR}"/memtest | |
105 | cp -a "chroot/boot/${_MEMTEST_BIN}.bin" "${DESTDIR}"/memtest | |
92 | 106 | ;; |
93 | 107 | |
94 | 108 | false) |
95 | cp -a /boot/${LB_MEMTEST}.bin "${DESTDIR}"/memtest | |
109 | cp -a "/boot/${_MEMTEST_BIN}.bin" "${DESTDIR}"/memtest | |
96 | 110 | ;; |
97 | 111 | esac |
98 | 112 |