2007-10-22 08:26:34 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
install ()
|
|
|
|
{
|
|
|
|
### check for activated testing repository
|
|
|
|
if ! [ "$(grep '^\[testing\]' /etc/pacman.conf)" = "" ]; then
|
|
|
|
echo "WARNING: TESTING REPOSITORY ACTIVATED"
|
|
|
|
echo "-------------------------------------"
|
|
|
|
echo "POSSIBILITY OF BROKEN BINARY PACKAGES ON INSTALL MEDIA!"
|
|
|
|
echo "Use a chroot instead to avoid those problems."
|
|
|
|
echo "5 seconds time to cancel with CTRL+C"
|
|
|
|
sleep 5
|
|
|
|
fi
|
|
|
|
### begin cvs part
|
|
|
|
if ! [ "${LOCALSETUP}" = "yes" ]; then
|
|
|
|
CVSTREE=$(mktemp /tmp/corecvs.XXXX)
|
2007-11-19 18:38:05 +01:00
|
|
|
GIT_INSTALLER_TREE=$(mktemp /tmp/installer.git.XXXX)
|
2007-10-22 08:26:34 +02:00
|
|
|
rm ${CVSTREE}
|
2007-11-19 18:38:05 +01:00
|
|
|
rm ${GIT_INSTALLER_TREE}
|
2007-10-22 08:26:34 +02:00
|
|
|
mkdir -p ${CVSTREE}
|
2007-11-19 18:38:05 +01:00
|
|
|
mkdir -p ${GIT_INSTALLER_TREE}
|
2007-10-22 08:26:34 +02:00
|
|
|
# checkout actual CURRENT cvs
|
|
|
|
export CVSROOT=${CVSSETUP}
|
|
|
|
else
|
|
|
|
CVSTREE=${CVSTREE}
|
2007-11-19 18:38:05 +01:00
|
|
|
GIT_INSTALLER_TREE=${GIT_INSTALLER_TREE}
|
2007-10-22 08:26:34 +02:00
|
|
|
fi
|
|
|
|
SCRIPT=
|
|
|
|
BINARIES=
|
|
|
|
# always needed for every install
|
2007-11-19 18:38:05 +01:00
|
|
|
cd ${GIT_INSTALLER_TREE}
|
2007-10-22 08:26:34 +02:00
|
|
|
if ! [ "${LOCALSETUP}" = "yes" ]; then
|
2007-11-20 12:27:09 +01:00
|
|
|
git-clone ${GIT_INSTALLER}
|
2007-10-22 08:26:34 +02:00
|
|
|
fi
|
|
|
|
mkdir -p ${TEMPDIR}/arch
|
|
|
|
add_dir "/src"
|
|
|
|
if ! [ "${LOCALSETUP}" = "yes" ]; then
|
2007-11-19 18:38:05 +01:00
|
|
|
add_file "${GIT_INSTALLER_TREE}/installer/setup" "/arch/setup"
|
|
|
|
add_file "${GIT_INSTALLER_TREE}/installer/quickinst" "/arch/quickinst"
|
2007-10-22 08:26:34 +02:00
|
|
|
else
|
|
|
|
sed -i -e "s/i686/$(uname -m)/g" ${MIRRORS}
|
|
|
|
add_file "${SETUP}" "/arch/setup"
|
|
|
|
add_file "${QUICKINST}" "/arch/quickinst"
|
|
|
|
fi
|
|
|
|
# generate iso title name
|
|
|
|
[ "${RUNPROGRAM}" = "mkbootcd" -o "${RUNPROGRAM}" = "mkbootcd-grub" ] && echo "Arch Linux MINI $(uname -m)" >> ${ISONAME}
|
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat <<HELPEOF
|
|
|
|
This hook sets up all you need for a lowmem arch install image.
|
|
|
|
HELPEOF
|
|
|
|
}
|