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