From 54c9d788d1d340dee7dbcd36868dd798ec30077a Mon Sep 17 00:00:00 2001 From: Clayton Craft <clayton@craftyguy.net> Date: Fri, 1 Nov 2024 17:33:20 -0700 Subject: [PATCH] ci/grep: fail if device pkg uses console=null (MR 5752) --- .ci/grep.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/grep.sh b/.ci/grep.sh index 08924b01aaf..18bedad3d7a 100755 --- a/.ci/grep.sh +++ b/.ci/grep.sh @@ -4,6 +4,8 @@ exit_code=0 +set -x + if [ "$(id -u)" = 0 ]; then set -x apk -q add grep @@ -87,4 +89,11 @@ if grep -qEr 'PMOS_NO_OUTPUT_REDIRECT' -- *; then exit_code=1 fi +if grep -qEr '^deviceinfo_kernel_cmdline.*[\"\s]console=null' -- *; then + echo "ERROR: Do not use console=null in the kernel command line." + echo "Use these params to quiet console on boot: quiet loglevel=2 udev.log_level=2" + echo "For more information, see: pma#2989" + exit_code=1 +fi + exit "$exit_code" -- GitLab