From 91e3c1ec9a0e003e5cea08383852be6535e11c45 Mon Sep 17 00:00:00 2001 From: Wei Jiangang Date: Mon, 21 Sep 2015 17:51:02 +0800 Subject: [PATCH] lib/nova: make redirects happen in correct order It should redirect stdout to /dev/null firstly, then redirect stderr to whatever stdout currently points at. Change-Id: I4666fa90a96301f0b504a8501f0ffc3fe17616b0 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 6441a891eb..63489502e9 100644 --- a/lib/nova +++ b/lib/nova @@ -332,7 +332,7 @@ function configure_nova { if [ ! -e /dev/kvm ]; then echo "WARNING: Switching to QEMU" LIBVIRT_TYPE=qemu - if which selinuxenabled 2>&1 > /dev/null && selinuxenabled; then + if which selinuxenabled >/dev/null 2>&1 && selinuxenabled; then # https://bugzilla.redhat.com/show_bug.cgi?id=753589 sudo setsebool virt_use_execmem on fi