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 <gpiccoli@igalia.com>
This commit is contained in:
@ -52,10 +52,16 @@ create_initrd() {
|
|||||||
mkdir -p "${KDUMP_FOLDER}"
|
mkdir -p "${KDUMP_FOLDER}"
|
||||||
rm -f "${KDUMP_FOLDER}/kdump-initrd-$(uname -r).img"
|
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)\" ..."
|
echo "Creating the kdump initramfs for kernel \"$(uname -r)\" ..."
|
||||||
dracut --no-early-microcode --host-only -q -m\
|
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"\
|
"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"
|
--kver "$(uname -r)" "${KDUMP_FOLDER}/kdump-initrd-$(uname -r).img"
|
||||||
|
|
||||||
|
export DRACUT_NO_XATTR=${DRACUT_XATTR}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -s "/usr/share/kdump/kdump.conf" ]; then
|
if [ ! -s "/usr/share/kdump/kdump.conf" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user