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

19 lines
676 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
[ "${RUNPROGRAM}" = "mkisolinux" ] && cp "/boot/amd-ucode.img" "${TEMPDIR}/boot/amd-ucode.img"
[ "${RUNPROGRAM}" = "archboot-tarball-helper.sh" ] && cp "/boot/amd-ucode.img" "${TEMPDIR}/boot/amd-ucode.img"
[ "${RUNPROGRAM}" = "mksyslinux" ] && cp "/boot/amd-ucode.img" "${TEMPDIR}/boot/amd-ucode.img"
[ "${RUNPROGRAM}" = "mkpxelinux" ] && cp "/boot/amd-ucode.img" "${INSTALLDIR}/amd-ucode.img"
# fix license files
add_file "/usr/share/licenses/amd-ucode/LICENSE.amd-ucode"
}
help ()
{
cat<<HELPEOF
This hook includes amd-ucode on an archboot image.
HELPEOF
}