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:
parent
e2f576d9c2
commit
24326abfa3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user