Skip to content

Commit

Permalink
[build] add support for LXC 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mmohring committed Apr 1, 2016
1 parent 4d58657 commit ce5730f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build-vm-lxc
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ vm_startup_lxc() {
EOF
chmod a+x "$LXCHOOK"
case "$(lxc-create --version)" in
1.0*)
lxc-create -n "$LXCID" -f "$LXCCONF" || cleanup_and_exit 1
lxc-start -n "$LXCID" "$vm_init_script"
;;
*)
1.0.8|1.1.*)
lxc-create -n "$LXCID" -f "$LXCCONF" -t none || cleanup_and_exit 1
lxc-start -n "$LXCID" -F "$vm_init_script"
;;
1.0.*)
lxc-create -n "$LXCID" -f "$LXCCONF" || cleanup_and_exit 1
lxc-start -n "$LXCID" "$vm_init_script"
;;
esac
BUILDSTATUS="$?"
test "$BUILDSTATUS" != 255 || BUILDSTATUS=3
Expand Down

0 comments on commit ce5730f

Please sign in to comment.