From: Ramon de C V. <rc...@re...> - 2011-10-25 16:33:40
|
Add missing size parameter for image creation. Signed-off-by: Ramon de C Valle <rc...@re...> --- audit/kvm/run.conf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audit/kvm/run.conf b/audit/kvm/run.conf index 4ab428e..43ea644 100644 --- a/audit/kvm/run.conf +++ b/audit/kvm/run.conf @@ -32,7 +32,7 @@ function kvm_install { chcon -t virt_image_t $install_media rm -f /var/lib/libvirt/images/$i.img - qemu-img create /var/lib/libvirt/images/$1.img + qemu-img create /var/lib/libvirt/images/$1.img ${disksize}G chown -R qemu. /var/lib/libvbirt/images/ restorecon -R /var/lib/libvirt/images/ @@ -59,7 +59,7 @@ function kvm_install_kickstart { chcon -t virt_image_t $install_media rm -f /var/lib/libvirt/images/$i.img - qemu-img create /var/lib/libvirt/images/$1.img + qemu-img create /var/lib/libvirt/images/$1.img ${disksize}G chown -R qemu. /var/lib/libvbirt/images/ restorecon -R /var/lib/libvirt/images/ -- 1.7.6.2 |
From: Miroslav V. <mva...@re...> - 2011-10-26 10:01:16
|
This patch is now also commited in the upstream tree. On 10/25/2011 06:33 PM, Ramon de C Valle wrote: > Add missing size parameter for image creation. > > Signed-off-by: Ramon de C Valle<rc...@re...> > --- > audit/kvm/run.conf | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/audit/kvm/run.conf b/audit/kvm/run.conf > index 4ab428e..43ea644 100644 > --- a/audit/kvm/run.conf > +++ b/audit/kvm/run.conf > @@ -32,7 +32,7 @@ function kvm_install { > chcon -t virt_image_t $install_media > > rm -f /var/lib/libvirt/images/$i.img > - qemu-img create /var/lib/libvirt/images/$1.img > + qemu-img create /var/lib/libvirt/images/$1.img ${disksize}G > chown -R qemu. /var/lib/libvbirt/images/ > restorecon -R /var/lib/libvirt/images/ > > @@ -59,7 +59,7 @@ function kvm_install_kickstart { > chcon -t virt_image_t $install_media > > rm -f /var/lib/libvirt/images/$i.img > - qemu-img create /var/lib/libvirt/images/$1.img > + qemu-img create /var/lib/libvirt/images/$1.img ${disksize}G > chown -R qemu. /var/lib/libvbirt/images/ > restorecon -R /var/lib/libvirt/images/ > -- Miroslav Vadkerti :: QA Engineer / RHCE :: BaseOS QE - Security IRC mvadkert at #qe #urt #rpmdiff :: GnuPG ID 0x25881087 at pgp.mit.edu Phone +420 532 294 129 :: CZ +420 775 039 842 :: SK +421 904 135 440 Red Hat s.r.o, Purkyňova 99/71, 612 45, Brno, Czech Republic |
From: Ramon de C V. <rc...@re...> - 2011-10-26 11:00:03
|
> This patch is now also commited in the upstream tree. Thank you very much! -- Ramon de C Valle / Red Hat Security Response Team |