Signed-off-by: Serge Hallyn <[email protected]>
---
src/lxc/lxc-create.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index 650a245..3c66bfa 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -313,6 +313,10 @@ if [ -n "$custom_rootfs" ]; then
echo "configuration file already specifies a lxc.rootfs"
exit 1
fi
+ if [ -d "$custom_rootfs" ]; then
+ echo "specified rootfs ($custom_rootfs) already exists. Bailing."
+ exit 1
+ fi
echo "lxc.rootfs = $custom_rootfs" >> $lxc_path/$lxc_name/config
fi
--
1.7.10.4
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Lxc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-devel