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