add arch_amd_ucode

This commit is contained in:
Tobias Powalowski 2020-07-21 13:35:25 +02:00
parent 97af308866
commit b50075f44e

View file

@ -0,0 +1,19 @@
#!/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"
}
help ()
{
cat<<HELPEOF
This hook includes amd-ucode on an arch boot image.
HELPEOF
}