#!/bin/sh

mkdir -p fc6-arm-root-minimal/var/log
yum --installroot=`pwd`/fc6-arm-root-minimal -y install bash 2>&1 | tee fc6-arm-root-minimal.log

mkdir -p fc6-arm-root-with-rpm/var/log
yum --installroot=`pwd`/fc6-arm-root-with-rpm -y install redhat-rpm-config rpm yum 2>&1 | tee fc6-arm-root-with-rpm.log
rm -f fc6-arm-root-with-rpm/etc/yum.repos.d/*
cp -a /etc/yum.repos.d/*.repo fc6-arm-root-with-rpm/etc/yum.repos.d/

mkdir -p fc6-arm-root-with-gcc/var/log
yum --installroot=`pwd`/fc6-arm-root-with-gcc -y install gcc redhat-rpm-config rpm yum 2>&1 | tee fc6-arm-root-with-gcc.log
rm -f fc6-arm-root-with-gcc/etc/yum.repos.d/*
cp -a /etc/yum.repos.d/*.repo fc6-arm-root-with-gcc/etc/yum.repos.d/
