From af6a4118db24a65dfa9d0787c467dc9fe99e6bbc Mon Sep 17 00:00:00 2001 From: Olivier MEDOC Date: Fri, 1 Aug 2014 12:43:47 +0200 Subject: [PATCH] archlinux: template flavor support including "minimal" template --- scripts_archlinux/02_install_groups.sh | 11 ++++++++++- scripts_archlinux/packages_minimal.list | 8 ++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 scripts_archlinux/packages_minimal.list diff --git a/scripts_archlinux/02_install_groups.sh b/scripts_archlinux/02_install_groups.sh index 1f5fc8b..140a8fd 100755 --- a/scripts_archlinux/02_install_groups.sh +++ b/scripts_archlinux/02_install_groups.sh @@ -1,11 +1,20 @@ #!/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 set -e echo "Mounting archlinux install system into mnt_archlinux_dvd..." mount $CACHEDIR/root-image.fs mnt_archlinux_dvd -PKGGROUPS=`cat $SCRIPTSDIR/packages.list` +PKGGROUPS=`cat $PKGLISTFILE` echo "-> Installing archlinux package groups..." echo "-> Selected packages:" diff --git a/scripts_archlinux/packages_minimal.list b/scripts_archlinux/packages_minimal.list new file mode 100644 index 0000000..a3fd8c2 --- /dev/null +++ b/scripts_archlinux/packages_minimal.list @@ -0,0 +1,8 @@ +xorg +xterm +python2 +sudo +wget +zsh +ethtool +net-tools