2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2008-10-20 22:39:25 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
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"
|
2020-08-15 11:56:31 +02:00
|
|
|
DOCS=$(mktemp /var/tmp/docs.XXXX)
|
2009-12-12 09:15:54 +01:00
|
|
|
cp -f /usr/share/archboot/installer/archboot.txt ${DOCS}
|
2008-10-20 22:39:25 +02:00
|
|
|
gzip -9 ${DOCS}
|
2009-12-12 09:15:54 +01:00
|
|
|
add_file "${DOCS}.gz" "/arch/archboot.txt.gz"
|
|
|
|
cp /usr/share/archboot/installer/archboot.txt ${TEMPDIR}/arch/archboot.txt
|
2012-07-18 18:49:04 +02:00
|
|
|
add_file "/usr/bin/genfstab"
|
|
|
|
add_file "/usr/bin/arch-chroot"
|
|
|
|
add_file "/usr/bin/pacstrap"
|
2021-09-16 17:23:49 +02:00
|
|
|
add_file "/usr/bin/archboot-update-installer.sh" "/usr/bin/update-installer.sh"
|
2008-10-20 22:39:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2012-07-18 18:49:04 +02:00
|
|
|
This hook includes the archboot installer and arch-install-scripts
|
|
|
|
on an arch boot image.
|
2008-10-20 22:39:25 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|