Bail out early, when initializing or mounting an image via bfs_shell

fails.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24328 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-09 17:34:26 +00:00
parent e2f576d9c2
commit 24326abfa3

View File

@ -116,11 +116,13 @@ if [ $isImage ]; then
if [ ! -e $imagePath -o ! "$dontClearImage" ]; then
dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize $ddFlags
fi
$bfsShell --initialize $imageOffsetFlags $imagePath Haiku
$bfsShell --initialize $imageOffsetFlags $imagePath Haiku || exit 1
$makebootable $imageOffsetFlags $imagePath
fi
$bfsShell -n $imageOffsetFlags $imagePath > /dev/null &
sleep 1
# bail out, if mounting fails
$cd . || exit 1
fi
# create BEOS:APP_SIG index -- needed to launch apps via signature