Skip to content

Commit

Permalink
update kexec-kdump-howto
Browse files Browse the repository at this point in the history
1. yum is deprecated so use dnf instead
2. use the "kdumpctl reset-crashkernel" API
  • Loading branch information
coiby committed Jun 28, 2022
1 parent 97b07a8 commit 7b46e7e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
fetch-depth: 0

- name: "${{ matrix.container }} kdump tests"
run: ./tools/test-github.sh
run: bash ./tools/test-github.sh
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ all: $(TEST_ROOT)/output/test-base-image
# to rebuild the rpm, currently use rpmbuild to have better control over the rpm building process
#
$(KEXEC_TOOLS_RPM): $(KEXEC_TOOLS_SRC)
sh -c "cd .. && fedpkg sources"
sh -c "cd .. && fedpkg --debug --verbose --release f$(RELEASE) sources"
@echo Rebuilding RPM due to modification of sources: $?
rpmbuild $(RPMDEFINE) -ba $(REPO)/$(SPEC)

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/image-init-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ create_image_from_base_image() {
if [ "$image_fmt" != "raw" ]; then
if fmt_is_qcow2 "$image_fmt"; then
echo "Source image is qcow2, using snapshot..."
qemu-img create -f qcow2 -b $image $output
qemu-img create -f qcow2 -b $image -F qcow2 $output
else
perror_exit "Unrecognized base image format '$image_mnt'"
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ run_test_sync() {
local qemu_cmd=$(get_test_qemu_cmd $1)

if [ -n "$qemu_cmd" ]; then
timeout --foreground 10m $BASEDIR/run-qemu $(get_test_qemu_cmd $1)
timeout --foreground 15m $BASEDIR/run-qemu $(get_test_qemu_cmd $1)
else
echo "error: test qemu command line is not configured" > /dev/stderr
return 1
Expand Down
4 changes: 4 additions & 0 deletions tools/test-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ source /etc/os-release

cd tests


git remote add fedora_src https://src.fedoraproject.org/rpms/kexec-tools.git
git config --add branch.f$VERSION_ID.remote fedora_src

RELEASE=$VERSION_ID make test-run

0 comments on commit 7b46e7e

Please sign in to comment.