2013-01-25 08:07:01 +00:00
|
|
|
#!/bin/sh
|
2014-08-01 10:43:47 +00:00
|
|
|
if [ -n "${TEMPLATE_FLAVOR}" ]; then
|
|
|
|
PKGLISTFILE="$SCRIPTSDIR/packages_${TEMPLATE_FLAVOR}.list"
|
|
|
|
if ! [ -r "${PKGLISTFILE}" ]; then
|
|
|
|
echo "ERROR: ${PKGLISTFILE} does not exists!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
PKGLISTFILE="$SCRIPTSDIR/packages.list"
|
|
|
|
fi
|
2013-01-25 08:07:01 +00:00
|
|
|
|
2013-04-19 00:20:29 +00:00
|
|
|
set -e
|
|
|
|
|
2013-02-16 16:17:42 +00:00
|
|
|
echo "Mounting archlinux install system into mnt_archlinux_dvd..."
|
2015-01-13 06:44:35 +00:00
|
|
|
mount $CACHEDIR/airootfs.img mnt_archlinux_dvd
|
|
|
|
|
|
|
|
echo "Fix bug intruduced in arch-chroot causing arguments not to be passed"
|
|
|
|
sed "s/unshare --fork --pid//" -i mnt_archlinux_dvd/usr/bin/arch-chroot
|
2013-01-25 08:07:01 +00:00
|
|
|
|
2014-08-01 10:43:47 +00:00
|
|
|
PKGGROUPS=`cat $PKGLISTFILE`
|
2013-02-16 15:00:50 +00:00
|
|
|
|
2013-01-25 08:07:01 +00:00
|
|
|
echo "-> Installing archlinux package groups..."
|
|
|
|
echo "-> Selected packages:"
|
|
|
|
echo "$PKGGROUPS"
|
2013-04-28 20:50:18 +00:00
|
|
|
./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --needed --noconfirm -S $PKGGROUPS
|
2013-01-25 08:07:01 +00:00
|
|
|
|
2013-04-28 20:50:18 +00:00
|
|
|
umount mnt_archlinux_dvd
|