Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
support CentOS7 32 bit
Browse files Browse the repository at this point in the history
fixes #19
  • Loading branch information
tpokorra committed Jan 11, 2016
1 parent 970967f commit e038412
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions initCentOS.sh
Expand Up @@ -36,7 +36,7 @@ bridgeAddress=$(getIPOfInterface $bridgeInterface) || die "cannot find the addre
networkAddress=$(echo $bridgeAddress | cut -f1,2,3 -d".")
IPv4=$networkAddress.$cid

if [ "$release" == "5" ]
if ( [ "$release" == "5" ] ) || ( [ "$release" == "7" ] && [ "$arch" == "i686" ] )
then
if [ -z `which yum` ]
then
Expand All @@ -48,7 +48,12 @@ then
then
arch2="x86_64"
fi
lxc-create -n $name -t $distro -- --release=$release --arch=$arch2 || exit 1
if ( [ "$release" == "7" ] && [ "$arch" == "i686" ] )
then
lxc-create -n $name -t $distro -- --repo=http://mirror.centos.org/altarch/7/os/i386/ --release=$release --arch=i686 || exit 1
else
lxc-create -n $name -t $distro -- --release=$release --arch=$arch2 || exit 1
fi
else
lxc-create -t download -n $name -- -d $distro -r $release -a $arch || exit 1
fi
Expand Down

0 comments on commit e038412

Please sign in to comment.