instack-undercloud/imagefactory/dib_overcloud_cinder_volume.tdl
Ben Nemec 208da24237 Don't specify the input type to qemu-img
At least in Koji, raw isn't correct and qemu-img will figure out
the correct file type automatically if it's just omitted.
2014-10-27 19:08:51 +00:00

13 lines
668 B
Plaintext

<template>
<commands>
<command name='mount'>mount /dev/vdb1 /mnt</command>
<command name='backup'>cp /etc/sudoers /etc/sudoers_backup</command>
<command name='pty'>sed 's/.*requiretty//g' /etc/sudoers_backup > /etc/sudoers</command>
<command name='convert'>qemu-img convert -O qcow2 /mnt/input_image.raw /mnt/input_image.qcow2</command>
<command name="localimage">export DIB_LOCAL_IMAGE=/mnt/input_image.qcow2
instack-build-images overcloud-cinder-volume
</command>
<command name="tar">tar cf /mnt/overcloud-cinder-volume.tar overcloud-cinder-volume.qcow2 overcloud-cinder-volume.vmlinuz overcloud-cinder-volume.initrd</command>
</commands>
</template>