mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 15:49:25 +00:00
tests/no-new-privs: Don't mess with /etc/lxc
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
3d8949788b
commit
ecf1f1207b
@ -36,11 +36,13 @@ cleanup() {
|
|||||||
|
|
||||||
trap cleanup EXIT SIGHUP SIGINT SIGTERM
|
trap cleanup EXIT SIGHUP SIGINT SIGTERM
|
||||||
|
|
||||||
mkdir -p /etc/lxc/
|
if [ ! -d /etc/lxc ]; then
|
||||||
cat > /etc/lxc/default.conf << EOF
|
mkdir -p /etc/lxc/
|
||||||
|
cat > /etc/lxc/default.conf << EOF
|
||||||
lxc.net.0.type = veth
|
lxc.net.0.type = veth
|
||||||
lxc.net.0.link = lxcbr0
|
lxc.net.0.link = lxcbr0
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
ARCH=i386
|
ARCH=i386
|
||||||
if type dpkg >/dev/null 2>&1; then
|
if type dpkg >/dev/null 2>&1; then
|
||||||
|
Loading…
Reference in New Issue
Block a user