Skip to content
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

Specify --xz explicitly when calling dracut to make initrd. #519

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

masteryyh
Copy link
Contributor

@masteryyh masteryyh commented Jul 3, 2023

Problem:

By default dracut uses Zstandard to compress initrd, and we're trying to use xzcat to decompress initrd which makes kdump.service fail to start.

Solution:

Add --xz when calling dracut to use xz compression.

Related Issue:
harvester/harvester#3928

Test plan:

  1. Build an ISO from this branch and deploy;
  2. Select debug mode when booting;
  3. After booted up, use command systemctl status kdump.service to confirm kdump.service is up and running;
  4. After kdump.service exited, use command echo c > /proc/sysrq-trigger to trigger a kernel crash manually;
  5. The system should reboot automatically and a progress bar (sort of) of kernel dump should show up;
  6. After rebooted, select debug mode again, and see if anything under /var/crash is generated.

Signed-off-by: masteryyh <yanhong.yang@suse.com>
@masteryyh masteryyh changed the title Use zstdcat to decompress initrd instead of xzcat. Specify --xz explicitly when calling dracut to make initrd. Jul 3, 2023
Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

Copy link
Contributor

@Vicente-Cheng Vicente-Cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bk201
Copy link
Member

bk201 commented Jul 3, 2023

@Mergifyio backport v1.2

@mergify
Copy link

mergify bot commented Jul 3, 2023

backport v1.2

✅ Backports have been created

@bk201
Copy link
Member

bk201 commented Jul 3, 2023

@Mergifyio backport v1.1

@mergify
Copy link

mergify bot commented Jul 3, 2023

backport v1.1

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants