Created
April 8, 2010 21:12
-
-
Save driedtoast/360544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## setup repo | |
rm -f ./yum.all.repo | |
DIR="/etc/yum.repos.d" | |
SUFFIX="repo" | |
for i in "$DIR"/*.$SUFFIX | |
do | |
cat ${i} >> ./yum.all.repo | |
done | |
sedscript="s/\$basearch/$ARCH/g" | |
sed -i $sedscript ./yum.all.repo | |
sedscript="s/\$releasever/$RELEASEVER/g" | |
sed -i $sedscript ./yum.all.repo | |
## setup fedora | |
mount -t proc none "/mnt/$BASE_NAME/proc" | |
yum -c yum.all.repo --installroot="/mnt/$BASE_NAME" -y groupinstall Base | |
RPMS="tar wget gzip bzip2 curl ruby *openssh* kernel-xen kernel-xen-devel" | |
yum -c yum.all.repo --installroot="/mnt/$BASE_NAME" -y install $RPMS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment