]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.support/src/org/argeo/slc/lib/linux/lxc-init-host.sh
Move SLC Support
[gpl/argeo-slc.git] / org.argeo.slc.support / src / org / argeo / slc / lib / linux / lxc-init-host.sh
diff --git a/org.argeo.slc.support/src/org/argeo/slc/lib/linux/lxc-init-host.sh b/org.argeo.slc.support/src/org/argeo/slc/lib/linux/lxc-init-host.sh
new file mode 100644 (file)
index 0000000..9e0d75d
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+CHROOT=$1
+echo Init LXC container $CHROOT
+
+mkdir $CHROOT/etc/yum.repos.d/ -p  
+cat /etc/yum.repos.d/CentOS-Base.repo |sed s/'$releasever'/6/g > $CHROOT/etc/yum.repos.d/CentOS-Base.repo
+yum groupinstall core --installroot=$CHROOT --nogpgcheck -y
+yum install plymouth libselinux-python --installroot=$CHROOT --nogpgcheck -y
\ No newline at end of file