initrd: if debugging, don't filter update-initramfs output (errors might be lurking in there)

This commit is contained in:
Ricardo Pardini 2023-10-24 17:16:35 +02:00 committed by Igor
parent 1baa01b2db
commit 1f436bddba

View File

@ -29,7 +29,8 @@ update_initramfs() {
local logging_filter=""
if [[ "${SHOW_DEBUG}" == "yes" ]]; then
initrd_debug="v"
logging_filter="2>&1 | { grep --line-buffered -v -e '.xz' -e 'ORDER ignored' -e 'Adding binary ' -e 'Adding module ' -e 'Adding firmware ' -e 'microcode bundle' -e ', pf_mask' || true ; }"
# disabled; if debugging, we want the full output, even if it is huge.
# logging_filter="2>&1 | { grep --line-buffered -v -e '.xz' -e 'ORDER ignored' -e 'Adding binary ' -e 'Adding module ' -e 'Adding firmware ' -e 'microcode bundle' -e ', pf_mask' || true ; }"
fi
if [ "$target_dir" != "" ]; then
initrd_kern_ver="$(basename "$target_dir")"