8000 tests/kola/kdump: Check for ignition modules in kdump intird by Johan-Liebert1 · Pull Request #3549 · coreos/fedora-coreos-config · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tests/kola/kdump: Check for ignition modules in kdump intird #3549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: testing-devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/kola/kdump/crash/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
if grep -q "WARNING: Current crashkernel size is lower than recommended size" <<< "$output"; then
fatal "The reserved crashkernel size is lower than recommended."
fi

kdump_path="/var/lib/kdump/initramfs-$(uname -r)kdump.img"

if [[ ! -f "${kdump_path}" ]]; then
fatal "kdump initrd not found at path ${kdump_path}"
fi

initrd_modules=$(lsinitrd --mod "${kdump_path}")

# Test that ignition/afterburn modules are not present in the kdump initramfs
# See https://github.com/coreos/fedora-coreos-tracker/issues/1832
if echo "${initrd_modules}" | grep -q ignition; then
fatal "ignition found in kdump initrd"
fi

if echo "${initrd_modules}" | grep -q afterburn; then
fatal "afterburn found in kdump initrd"
fi

/tmp/autopkgtest-reboot-prepare aftercrash
# Add in a sleep to workaround race condition where XFS/kernel errors happen
# during crash kernel boot.
Expand Down
0