From e61bf6913879cc3ff1b061862b79d446ebcf2f18 Mon Sep 17 00:00:00 2001 From: Clayton Craft 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ci/grep.sh b/.ci/grep.sh index 08924b01a..73107182f 100755 --- a/.ci/grep.sh +++ b/.ci/grep.sh @@ -87,4 +87,11 @@ if grep -qEr 'PMOS_NO_OUTPUT_REDIRECT' -- *; then exit_code=1 fi +if grep -qEr '^deviceinfo_kernel_cmdline.*[\"\s]console=null' -- device/; 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" + echo "For more information, see: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2989" + exit_code=1 +fi + exit "$exit_code"