archboot/usr/lib/initcpio/install/archboot_intel
Tobias Powalowski 3a1aa8c78f rename install hooks from arch_ to archboot_
Signed-off-by: Tobias Powalowski <tpowa@archlinux.org>
2021-09-09 10:09:04 +02:00

19 lines
687 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
[ "${RUNPROGRAM}" = "mkisolinux" ] && cp "/boot/intel-ucode.img" "${TEMPDIR}/boot/intel-ucode.img"
[ "${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"
# fix license files
add_file "/usr/share/licenses/intel-ucode/LICENSE"
}
help ()
{
cat<<HELPEOF
This hook includes intel-ucode on an arch boot image.
HELPEOF
}