From af20f89346bde15dc29a2f509e34d8a9c26ab987 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 23 Oct 2017 18:54:37 +0300 Subject: [PATCH] rescue: make libX11 test a bit more helpful It should be more clear what gets libX11 test triggered. --- features.in/rescue/rescue/image-scripts.d/00-test-rescue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features.in/rescue/rescue/image-scripts.d/00-test-rescue b/features.in/rescue/rescue/image-scripts.d/00-test-rescue index 5a67da71..854a4896 100755 --- a/features.in/rescue/rescue/image-scripts.d/00-test-rescue +++ b/features.in/rescue/rescue/image-scripts.d/00-test-rescue @@ -2,9 +2,10 @@ no_x11() { if rpmquery libX11 >&/dev/null; then - echo "** rescue image contains libX11 which is prohibited" >&2 + echo "** rescue image contains libX11 which is prohibited" + rpm -e --test libX11 exit 1 - fi + fi >&2 } case "${GLOBAL_TEST_RESCUE:-}" in