From 4ae99258b62bb825c6fe72dd24a6764bdb1913a2 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Tue, 2 Aug 2022 16:02:31 -0300 Subject: [PATCH] kdump-load.sh: Prevent log pollution when creating initrd Due to some xattr vs. btrfs issues, we see a lot of warnings when creating the initrd. These are harmless, but pollute logs and may cause some unnecessary concern for the users. Let's just suppress these warnings in the kdump initrd creation. Signed-off-by: Guilherme G. Piccoli --- kdump-load.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kdump-load.sh b/kdump-load.sh index 4241d67..4737929 100644 --- a/kdump-load.sh +++ b/kdump-load.sh @@ -52,10 +52,16 @@ create_initrd() { mkdir -p "${KDUMP_FOLDER}" rm -f "${KDUMP_FOLDER}/kdump-initrd-$(uname -r).img" + # Let's prevent journal pollution due to potential xattr issues... + DRACUT_XATTR="${DRACUT_NO_XATTR}" + export DRACUT_NO_XATTR=1 + echo "Creating the kdump initramfs for kernel \"$(uname -r)\" ..." dracut --no-early-microcode --host-only -q -m\ "bash systemd systemd-initrd systemd-sysusers modsign dbus-daemon kdump dbus udev-rules dracut-systemd base fs-lib shutdown"\ --kver "$(uname -r)" "${KDUMP_FOLDER}/kdump-initrd-$(uname -r).img" + + export DRACUT_NO_XATTR=${DRACUT_XATTR} } if [ ! -s "/usr/share/kdump/kdump.conf" ]; then