kernel_collector: Add efi_pstore driver pattern

With the upstream commit 893c5f1de620fb0134ddef37dfd850f6c639162b, the
efi pstore driver has been renamed from "efi" to "efi_pstore". This
driver name is used as a pattern when collecting and processing kernel
crash files, so we must try to use both patterns in order to be
compatible with both newer and older kernel versions.

Specifically, when collecting files we collect all files matching either
name. When deleting, reading, and checking the type of files, we try
both driver patterns and continue on success, only failing if both
patterns fail the operation.

TEST=presubmit, build lakitu and lakitu_next images with patch and verify that both collect crash logs correctly

Change-Id: I34000a7e382c8319ba1fd8fd827b599728ac9acf
Tested-by: RBE-prod-presubmit <>
Reviewed-by: Oleksandr Tymoshenko <>
Tested-by: Cusky Presubmit Bot <>
3 files changed