Quote the image path to deal gracefully with spaces and the like.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
cedc3f1eb8
commit
0bcca89476
@ -95,19 +95,20 @@ if [ $isImage ]; then
|
||||
|
||||
ddFlags=
|
||||
if [ $isVMwareImage ]; then
|
||||
rm -f $imagePath
|
||||
$vmdkheader -h 64k -i${imageSize}M $imagePath || exit 1
|
||||
rm -f "$imagePath"
|
||||
$vmdkheader -h 64k -i${imageSize}M "$imagePath" || exit 1
|
||||
ddFlags="conv=notrunc oflag=append"
|
||||
dontClearImage=
|
||||
fi
|
||||
|
||||
if [ ! -e $imagePath -o ! "$dontClearImage" ]; then
|
||||
dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize $ddFlags
|
||||
if [ ! -e "$imagePath" -o ! "$dontClearImage" ]; then
|
||||
dd if=/dev/zero of="$imagePath" bs=1048576 count=$imageSize $ddFlags
|
||||
fi
|
||||
$bfsShell --initialize $imageOffsetFlags $imagePath Haiku "block_size 2048" || exit 1
|
||||
$makebootable $imageOffsetFlags $imagePath
|
||||
$bfsShell --initialize $imageOffsetFlags "$imagePath" Haiku \
|
||||
"block_size 2048" || exit 1
|
||||
$makebootable $imageOffsetFlags "$imagePath"
|
||||
fi
|
||||
$bfsShell -n $imageOffsetFlags $imagePath > /dev/null &
|
||||
$bfsShell -n $imageOffsetFlags "$imagePath" > /dev/null &
|
||||
sleep 1
|
||||
# bail out, if mounting fails
|
||||
$cd . || exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user