From 62940f2aa7112e76b06a04ce3a91d2b5a6c8bdb6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 29 Jun 2015 13:08:12 +0000 Subject: [PATCH] Add check for lxc-attach --- id-deb-build/id-pbuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 8e07f24..8c76b9e 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -40,7 +40,10 @@ done if test "$do_help" = "yes"; then usage 1 1>&2 fi - +if test ! -x /usr/bin/lxc-attach; then + echo "No lxc-attach. Probably not running on mochi!!" + exit 1 +fi if test -f IDMETA; then . ./IDMETA else -- 1.7.10.4