From f1173b0ee43a06781c118fe55bb36fab0fd59c80 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Mon, 8 Aug 2022 19:04:25 -0300 Subject: [PATCH] kdump-load.sh: Simplify the dracut command As per Emil (@xexaxo) suggestion, change the dracut mechanism added in a recent commit for log pollution prevention. It is waaay simpler to just directly use the variable that prevents dracut to flood the output with xattr harmless complaints. Previous approach was an unfortunate braino from myself. Signed-off-by: Guilherme G. Piccoli --- kdump-load.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kdump-load.sh b/kdump-load.sh index 60be97f..79ee81f 100644 --- a/kdump-load.sh +++ b/kdump-load.sh @@ -52,16 +52,10 @@ 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\ + DRACUT_NO_XATTR=1 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} } # This routine performs a clean-up by deleting the old/useless remaining