lxc-test-ubuntu revision f10e04e36170dbd0faae3a667d53f0af1ef6a13a
# lxc-test-ubuntu: some tests of ubuntu-specific features of lxc.
# Some features of lxc - networking and LSM configuration for instance -
# are generally configured by the distro packages. This program
# tests the Ubuntu configuration.
# These require the ubuntu lxc package to be installed.
# General lxc functionality testing does not belong here.
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
set -e
echo -n "Failed " >&2
echo "$*" >&2
exit 1
}
# Only run on a normally configured ubuntu lxc system
echo "lxcbr0 is not configured."
exit 0
fi
echo "Must run as root."
exit 0
fi
echo "'host' program not found. Please install bind9-host"
exit 0
fi
# need a different name for each container so dnsmasq doesn't
# mess us up with its caching
else
fi
[ -z "$lxcip" ] || break
sleep 1
done
# Check apparmor
if [ "$aa" != "lxc-container-default-with-nesting (enforce)" ]; then
fi
done
exit 0