Commit ea39e0c2 by dlezcano

*** empty log message ***

parent 6b96cf76
...@@ -348,8 +348,8 @@ untar_tarball() { ...@@ -348,8 +348,8 @@ untar_tarball() {
NAME="sshd" NAME="sshd"
CONFFILE="lxc.conf" CONFFILE="lxc.conf"
FSTABFILE="fstab" MNTFILE="mount.conf"
UTSNAME="virtsshd" UTSNAME=
IPV4="172.20.0.20/24" IPV4="172.20.0.20/24"
create() { create() {
...@@ -390,11 +390,11 @@ lxc.network.flags = up ...@@ -390,11 +390,11 @@ lxc.network.flags = up
lxc.network.link = br0 lxc.network.link = br0
lxc.network.ipv4 = $IPV4 lxc.network.ipv4 = $IPV4
lxc.network.name = eth0 lxc.network.name = eth0
lxc.mount = $FSTABFILE lxc.mount = $MNTFILE
lxc.rootfs = $ROOTFS lxc.rootfs = $ROOTFS
EOF EOF
cat <<EOF > $FSTABFILE cat <<EOF > $MNTFILE
/lib $(pwd)/$ROOTFS/lib none ro,bind 0 0 /lib $(pwd)/$ROOTFS/lib none ro,bind 0 0
/bin $(pwd)/$ROOTFS/bin none ro,bind 0 0 /bin $(pwd)/$ROOTFS/bin none ro,bind 0 0
/usr $(pwd)/$ROOTFS/usr none ro,bind 0 0 /usr $(pwd)/$ROOTFS/usr none ro,bind 0 0
...@@ -402,14 +402,14 @@ cat <<EOF > $FSTABFILE ...@@ -402,14 +402,14 @@ cat <<EOF > $FSTABFILE
EOF EOF
if [ "$(arch)" = "x86_64" ]; then if [ "$(arch)" = "x86_64" ]; then
cat <<EOF >> $FSTABFILE cat <<EOF >> $MNTFILE
/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0 /lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
EOF EOF
fi fi
lxc-create -n $NAME -f $CONFFILE lxc-create -n $NAME -f $CONFFILE
rm -f $FSTABFILE rm -f $MNTFILE
rm -f $CONFFILE rm -f $CONFFILE
echo "Done." echo "Done."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment