Ver código fonte

Check existence of lxc-init before cp to init.lxc

pull/135/head
Kevin Gallagher 4 anos atrás
pai
commit
543e0d5061
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8
    2
      bin/make-base-vm

+ 8
- 2
bin/make-base-vm Ver arquivo

@@ -193,9 +193,15 @@ if [ $LXC = "1" ]; then
else
if [ $ARCH = "amd64" ]
then
sudo cp $OUT-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc
if [ -f $OUT-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init ]
then
sudo cp $OUT-bootstrap/usr/lib/x86_64-linux-gnu/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc
fi
else
sudo cp $OUT-bootstrap/usr/lib/i386-linux-gnu/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc
if [ -f $OUT-bootstrap/usr/lib/i386-linux-gnu/lxc/lxc-init ]
then
sudo cp $OUT-bootstrap/usr/lib/i386-linux-gnu/lxc/lxc-init $OUT-bootstrap/usr/sbin/init.lxc
fi
fi
fi
dd if=/dev/zero of=$OUT-lxc bs=1M count=1 seek=10240

Carregando…
Cancelar
Salvar