Allow build_chroot to work from any directory
[ganeti-github.git] / devel / build_chroot
index 926c74a..d134a4b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #Configuration
-: ${DATA_DIR=data}
+: ${DATA_DIR=`dirname $0`/data}
 : ${ARCH=amd64}
 : ${DIST_RELEASE=squeeze}
 : ${CONF_DIR:=/etc/schroot/chroot.d}