Changeset 24610
- Timestamp:
- 03/27/08 17:11:04 (8 months ago)
- Files:
-
- 1 modified
-
haiku/trunk/build/scripts/build_haiku_image (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/build/scripts/build_haiku_image
r24586 r24610 96 96 ddFlags= 97 97 if [ $isVMwareImage ]; then 98 rm -f $imagePath99 $vmdkheader -h 64k -i${imageSize}M $imagePath|| exit 198 rm -f "$imagePath" 99 $vmdkheader -h 64k -i${imageSize}M "$imagePath" || exit 1 100 100 ddFlags="conv=notrunc oflag=append" 101 101 dontClearImage= 102 102 fi 103 103 104 if [ ! -e $imagePath-o ! "$dontClearImage" ]; then105 dd if=/dev/zero of= $imagePathbs=1048576 count=$imageSize $ddFlags104 if [ ! -e "$imagePath" -o ! "$dontClearImage" ]; then 105 dd if=/dev/zero of="$imagePath" bs=1048576 count=$imageSize $ddFlags 106 106 fi 107 $bfsShell --initialize $imageOffsetFlags $imagePath Haiku "block_size 2048" || exit 1 108 $makebootable $imageOffsetFlags $imagePath 107 $bfsShell --initialize $imageOffsetFlags "$imagePath" Haiku \ 108 "block_size 2048" || exit 1 109 $makebootable $imageOffsetFlags "$imagePath" 109 110 fi 110 $bfsShell -n $imageOffsetFlags $imagePath> /dev/null &111 $bfsShell -n $imageOffsetFlags "$imagePath" > /dev/null & 111 112 sleep 1 112 113 # bail out, if mounting fails
