archboot/usr/lib/initcpio/install/archboot_amd_ucode

20 lines
677 B
Text
Raw Normal View History

2020-07-21 13:35:25 +02:00
#!/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
2021-08-09 13:49:11 +02:00
add_file "/usr/share/licenses/amd-ucode/LICENSE.amd-ucode"
2020-07-21 13:35:25 +02:00
}
help ()
{
cat<<HELPEOF
This hook includes amd-ucode on an arch boot image.
HELPEOF
}