2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-02-22 23:46:50 +01:00
|
|
|
{
|
2008-10-20 22:39:25 +02:00
|
|
|
### check for root
|
|
|
|
if ! [ $UID -eq 0 ]; then
|
|
|
|
echo "ERROR: Please run as root user!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
### check for TEMPDIR
|
2013-09-16 16:45:02 +02:00
|
|
|
if [ "$TEMPDIR" = "" ]; then
|
2008-10-20 22:39:25 +02:00
|
|
|
echo "ERROR: No TEMPDIR was set, please set TEMPDIR first!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2007-02-22 23:46:50 +01:00
|
|
|
### 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
|
2008-10-20 22:39:25 +02:00
|
|
|
|
2007-02-22 23:46:50 +01:00
|
|
|
# generate iso title name
|
2008-12-06 19:12:19 +01:00
|
|
|
[ "${RUNPROGRAM}" = "mkisolinux" ] && echo "Arch_Linux_FTP $(uname -m)" >> ${ISONAME}
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat <<HELPEOF
|
2013-07-15 15:03:04 +02:00
|
|
|
This hook sets up all you need for a arch network install image.
|
2007-02-22 23:46:50 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|