mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
26 lines
786 B
Bash
26 lines
786 B
Bash
#!/usr/bin/env bash
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
build ()
|
|
{
|
|
! [ -d "${TEMPDIR}/arch/" ] && mkdir -p ${TEMPDIR}/arch/
|
|
add_file "/usr/share/archboot/installer/setup" "/arch/setup"
|
|
add_file "/usr/share/archboot/installer/quickinst" "/arch/quickinst"
|
|
DOCS=$(mktemp /var/tmp/docs.XXXX)
|
|
cp -f /usr/share/archboot/installer/archboot.txt ${DOCS}
|
|
gzip -9 ${DOCS}
|
|
add_file "${DOCS}.gz" "/arch/archboot.txt.gz"
|
|
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"
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat<<HELPEOF
|
|
This hook includes the archboot installer and arch-install-scripts
|
|
on an arch boot image.
|
|
HELPEOF
|
|
}
|