3c3
< # $FreeBSD: head/release/tools/azure.conf 284617 2015-06-19 23:03:05Z gjb $
---
> # $FreeBSD: head/release/tools/azure.conf 284660 2015-06-21 04:34:57Z gjb $
16a17
> chroot ${DESTDIR} ln -s /usr/local/sbin/waagent /usr/sbin/waagent
29,42d29
<
< vm_extra_create_disk() {
< if [ ! -x "/usr/local/bin/qemu-img" ]; then
< env ASSUME_ALWAYS_YES=yes pkg install -y emulators/qemu-devel
< fi
<
< mv ${VMIMAGE} ${VMIMAGE}.raw
< size=$(qemu-img info -f raw --output json ${VMIMAGE}.raw | awk '/virtual-size/ {print $2}' | tr -d ',')
< size=$(( ( ${size} / ( 1024 * 1024 ) + 1 ) * ( 1024 * 1024 ) ))
< qemu-img resize ${VMIMAGE}.raw ${size}
< qemu-img convert -f raw -o subformat=fixed -O vpc ${VMIMAGE}.raw ${VMIMAGE}
<
< return 0
< }
< # $FreeBSD: head/release/tools/azure.conf 284617 2015-06-19 23:03:05Z gjb $
---
> # $FreeBSD: head/release/tools/azure.conf 284660 2015-06-21 04:34:57Z gjb $
16a17
> chroot ${DESTDIR} ln -s /usr/local/sbin/waagent /usr/sbin/waagent
29,42d29
<
< vm_extra_create_disk() {
< if [ ! -x "/usr/local/bin/qemu-img" ]; then
< env ASSUME_ALWAYS_YES=yes pkg install -y emulators/qemu-devel
< fi
<
< mv ${VMIMAGE} ${VMIMAGE}.raw
< size=$(qemu-img info -f raw --output json ${VMIMAGE}.raw | awk '/virtual-size/ {print $2}' | tr -d ',')
< size=$(( ( ${size} / ( 1024 * 1024 ) + 1 ) * ( 1024 * 1024 ) ))
< qemu-img resize ${VMIMAGE}.raw ${size}
< qemu-img convert -f raw -o subformat=fixed -O vpc ${VMIMAGE}.raw ${VMIMAGE}
<
< return 0
< }