]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
livepatch/klp-build: add grep-override function
authorJoe Lawrence <joe.lawrence@redhat.com>
Tue, 10 Mar 2026 20:37:44 +0000 (16:37 -0400)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 16 Mar 2026 19:46:48 +0000 (12:46 -0700)
commite4dbf70615e52255de3ff943ac08e0bbd080dcd6
tree32a151dab98787fa098161861263e373308562c9
parentd36a7343f4bac518b6ef05e2ccc47acd3a2cdab9
livepatch/klp-build: add grep-override function

Provide a custom grep() function to catch direct usage of the command.
Bare grep calls are generally incompatible with pipefail and
errexit behavior (where a failed match causes the script to exit).

Developers can still call grep via command grep if that behavior is
explicitly desired.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-6-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
scripts/livepatch/klp-build