archboot/usr/lib/initcpio/install/archboot_memtest
Tobias Powalowski 7206f7c7f8 change message
2021-10-04 11:13:50 +02:00

17 lines
602 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
[ "${RUNPROGRAM}" = "mkisolinux" ] && cp "/boot/memtest86+/memtest.bin" "${TEMPDIR}/boot/memtest"
[ "${RUNPROGRAM}" = "archboot-tarball-helper.sh" ] && cp "/boot/memtest86+/memtest.bin" "${TEMPDIR}/boot/memtest"
[ "${RUNPROGRAM}" = "mksyslinux" ] && cp "/boot/memtest86+/memtest.bin" "${TEMPDIR}/boot/memtest"
[ "${RUNPROGRAM}" = "mkpxelinux" ] && cp "/boot/memtest86+/memtest.bin" "${INSTALLDIR}/memtest"
}
help ()
{
cat<<HELPEOF
This hook includes the memtest on an archboot image.
HELPEOF
}