Revision 14de44dc snf-image-host/create
b/snf-image-host/create | ||
---|---|---|
38 | 38 |
|
39 | 39 |
if [ "$IMAGE_TYPE" = custom ]; then |
40 | 40 |
image_file=/dev/null |
41 |
image_size=0 |
|
41 |
image_size=\ |
|
42 |
$("$CURL" -sI "$IMAGE_NAME" | grep ^Content-Length: | cut -d" " -f2) |
|
42 | 43 |
else |
43 | 44 |
image_file="$IMAGE_DIR/$IMAGE_NAME-$ARCH.$IMAGE_TYPE" |
44 | 45 |
image_size="$(stat -L -c %s "$image_file")" |
... | ... | |
81 | 82 |
esac |
82 | 83 |
|
83 | 84 |
if [ "$IMAGE_TYPE" = "custom" ]; then |
84 |
wget -O - $IMAGE_NAME | $monitor dd bs=4M of="$target" oflag=direct
|
|
85 |
"$WGET" -O - $IMAGE_NAME | $monitor dd bs=4M of="$target" oflag=direct
|
|
85 | 86 |
else |
86 | 87 |
# dd the dump to its new home :-) |
87 | 88 |
# Deploying an image file on a target block device is a streaming copy |
Also available in: Unified diff