archboot/lib/initcpio/install/arch_addons
2008-12-06 19:12:19 +01:00

26 lines
No EOL
928 B
Text

# Created by Tobias Powalowski <tpowa@archlinux.org>
install ()
{
MODULES=""
BINARIES=""
FILES=""
SCRIPT="arch_addons"
echo "- ARCH_ADDONS USAGE:" >> ${OPTIONSBOOTMESSAGE}
echo " In order to load external addon packages or configs" >> ${OPTIONSBOOTMESSAGE}
echo " into the install environment, please append arch-addons to boot prompt." >> ${OPTIONSBOOTMESSAGE}
echo " Place external addon packages in /packages directory." >> ${OPTIONSBOOTMESSAGE}
echo " Place external configs in /config directory." >> ${OPTIONSBOOTMESSAGE}
echo "" >> ${OPTIONSBOOTMESSAGE}
! [ -d ${TEMPDIR}/packages ] && mkdir ${TEMPDIR}/packages
! [ -d ${TEMPDIR}/config ] && mkdir ${TEMPDIR}/config
cp -r /etc/archboot/packages/* ${TEMPDIR}/packages
cp -r /etc/archboot/config/* ${TEMPDIR}/config
}
help ()
{
cat<<HELPEOF
This hook includes the addons check on an arch boot image.
HELPEOF
}