modify check to accept all kinds of nodes, including device nodes.
authorAdrian Schröter <adrian@suse.de>
Thu, 15 May 2008 14:52:33 +0000 (14:52 +0000)
committerAdrian Schröter <adrian@suse.de>
Thu, 15 May 2008 14:52:33 +0000 (14:52 +0000)
This is needed to support build with lvm.

build

diff --git a/build b/build
index 66d956b..548077d 100755 (executable)
--- a/build
+++ b/build
@@ -710,7 +710,7 @@ if test -z "$RUNNING_IN_XEN" ; then
        if test "$VM_IMAGE" = 1 ; then
            VM_IMAGE="$BUILD_ROOT.img"
        fi
-       if test ! -f "$VM_IMAGE" ; then
+       if test ! -e "$VM_IMAGE" ; then
            echo "you need to create a file system on $VM_IMAGE first"
            cleanup_and_exit 1
        fi