archboot/usr/lib/initcpio/install/arch_installer

27 lines
782 B
Text
Raw Normal View History

#!/usr/bin/env bash
2008-10-20 22:39:25 +02:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2008-10-20 22:39:25 +02:00
{
! [ -d "${TEMPDIR}/arch/" ] && mkdir -p ${TEMPDIR}/arch/
2008-12-06 19:12:19 +01:00
add_file "/usr/share/archboot/installer/setup" "/arch/setup"
add_file "/usr/share/archboot/installer/quickinst" "/arch/quickinst"
2008-10-20 22:39:25 +02:00
DOCS=$(mktemp /tmp/docs.XXXX)
cp -f /usr/share/archboot/installer/archboot.txt ${DOCS}
2008-10-20 22:39:25 +02:00
gzip -9 ${DOCS}
add_file "${DOCS}.gz" "/arch/archboot.txt.gz"
2008-10-20 22:39:25 +02:00
add_dir "/src"
cp /usr/share/archboot/installer/archboot.txt ${TEMPDIR}/arch/archboot.txt
add_file "/usr/bin/genfstab"
add_file "/usr/bin/arch-chroot"
add_file "/usr/bin/pacstrap"
2008-10-20 22:39:25 +02:00
}
help ()
{
cat<<HELPEOF
This hook includes the archboot installer and arch-install-scripts
on an arch boot image.
2008-10-20 22:39:25 +02:00
HELPEOF
}