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
Fix initrd regeneration on s390x and Fedora/RHEL #2873
Conversation
For some reason, the 550_rebuild_initramfs.sh script was not included for s390x on Fedora/RHEL so the initrd was not regenerated after backup restore on this architecture. Since all other architectures were actually using the same script, let's just move it one level up to fix this bug and to also simplify the directory structure a bit.
|
The symlinks ( ppc, ppc64le ) to the script have been introduced in #1311 and s390 was then forgotten, because support for that arch got introduced later. I have read #1311 (comment) and I don't think that the issue described there prevents moving the file up and removing the symlinks, and it is IMO the right thing to do, because there is nothing architecture-dependent in initrd regeneration. It will prevent this from being forgotten again when a new architecture support is added (think ARM). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully agree with the change - good finding by the way.
|
Regarding my I think the crucial point is whether or not The problem is when there are already architecture-dependent |
|
By the way: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From plain looking at the changes it looks good to me
|
Yes, it had been already there, so I don't blame the authors of #1311 for following the example. It has been since the beginning when it was introduced (as |
|
Further unifying the actual scripts into one or two (as far as possible with reasonable effort) |
|
In general I am against the Linux distribution specific In contrast when different kind of things are used |
|
@pcahyna |
|
Hi @jsmeix , thanks for looking. We can check the differences between Fedora and SUSE scripts and determine if they are needed or not (some tests on both sides will be required). |
Fix initrd regeneration on s390x and Fedora/RHEL
Relax-and-Recover (ReaR) Pull Request Template
Please fill in the following items before submitting a new pull request:
Pull Request Details:
Type: Bug Fix
Impact: Normal
How was this pull request tested? RHEL 9 on s390x z/VM
Brief description of the changes in this pull request:
For some reason, the
550_rebuild_initramfs.shscript was not included for s390x on Fedora/RHEL so the initrd was not regenerated after backup restore on this architecture.Since all other architectures were actually using the same script, let's just move it one level up to fix this bug and to also simplify the directory structure a bit.