qubes-linux-template-builder/scripts_archlinux/02_install_groups.sh

25 lines
625 B
Bash
Raw Normal View History

#!/bin/sh
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-04-19 00:20:29 +00:00
set -e
echo "Mounting archlinux install system into mnt_archlinux_dvd..."
mount $CACHEDIR/root-image.fs mnt_archlinux_dvd
PKGGROUPS=`cat $PKGLISTFILE`
echo "-> Installing archlinux package groups..."
echo "-> Selected packages:"
echo "$PKGGROUPS"
./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --needed --noconfirm -S $PKGGROUPS
umount mnt_archlinux_dvd