From 8ec5513a480c9616bdb55b50c14fcc60ef25af66 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 29 Mar 2010 14:58:51 +0200 Subject: [PATCH] only rebuild initrd if not in build service mode build service always passes --rpmlint so use that as trigger --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 006fe92..8451e5b 100755 --- a/build +++ b/build @@ -920,7 +920,7 @@ if [ "$VM_TYPE" = 'kvm' -a -z "$RUNNING_IN_VM" ]; then -m "binfmt_misc virtio_pci virtio_blk" \ -k $qemu_kernel \ -i ${qemu_initrd}-virtio) - if [ ! -w /root ]; then + if [ ! -w /root -o -n "$RPMLIST" ]; then echo "No initrd that provides virtio support found. virtio accelleration disabled." echo "Run the following command as root to enable virtio:" shellquote "${mkinitrd_virtio_cmd[@]}" -- 2.7.4