Ticket #5256: build_haiku_image-sansPipeExit1-useSet_e.patch
File build_haiku_image-sansPipeExit1-useSet_e.patch, 975 bytes (added by , 14 years ago) |
---|
-
build/scripts/build_haiku_image
1 1 #!/bin/sh 2 set -o errexit 2 3 3 4 # The first argument is the shell script that initializes the variables: 4 5 # sourceDir … … 122 123 fi 123 124 124 125 if [ $isVMwareImage ]; then 125 $vmdkimage -h 64k $imageFlags "$imagePath" || exit 1126 $vmdkimage -h 64k $imageFlags "$imagePath" 126 127 else 127 $createImage $imageFlags "$imagePath" || exit 1128 $createImage $imageFlags "$imagePath" 128 129 fi 129 130 130 131 $bfsShell --initialize $imageOffsetFlags "$imagePath" \ 131 "$imageLabel" "block_size 2048" || exit 1132 "$imageLabel" "block_size 2048" 132 133 $makebootable $imageOffsetFlags "$imagePath" 133 134 fi 134 135 $bfsShell -n $imageOffsetFlags "$imagePath" > /dev/null & 135 136 sleep 1 136 137 # bail out, if mounting fails 137 $cd . || exit 1138 $cd . 138 139 fi 139 140 140 141 echo "Populating image ..."