archboot/usr/lib/initcpio/install/archboot_intel_ucode

20 lines
686 B
Text
Raw Normal View History

#!/usr/bin/env bash
2012-06-26 09:06:08 +02:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
2014-11-11 16:36:49 +01:00
[ "${RUNPROGRAM}" = "mkisolinux" ] && cp "/boot/intel-ucode.img" "${TEMPDIR}/boot/intel-ucode.img"
2014-11-12 09:25:15 +01:00
[ "${RUNPROGRAM}" = "archboot-tarball-helper.sh" ] && cp "/boot/intel-ucode.img" "${TEMPDIR}/boot/intel-ucode.img"
[ "${RUNPROGRAM}" = "mksyslinux" ] && cp "/boot/intel-ucode.img" "${TEMPDIR}/boot/intel-ucode.img"
[ "${RUNPROGRAM}" = "mkpxelinux" ] && cp "/boot/intel-ucode.img" "${INSTALLDIR}/intel-ucode.img"
2012-06-26 09:06:08 +02:00
# fix license files
2012-07-30 16:01:32 +02:00
add_file "/usr/share/licenses/intel-ucode/LICENSE"
2012-06-26 09:06:08 +02:00
}
help ()
{
cat<<HELPEOF
2021-10-04 11:13:50 +02:00
This hook includes intel-ucode on an archboot image.
2012-06-26 09:06:08 +02:00
HELPEOF
}