dracut
dracut copied to clipboard
fix(dracut-initramfs-restore.sh): fix initramfs path detection
The path detection is not working on latest Fedora and some other distros, and fails to extract the initramfs. It seems the if statement is broken by a previous commit, so let's fix it.
Fixes: 3d8e1ad ('fix(dracut-initramfs-restore.sh): add missing default paths') Signed-off-by: Kairui Song [email protected]
Checklist
- [x] I have tested it locally
- [ ] I have reviewed and updated any documentation if relevant
- [ ] I am providing new code and test(s) for it
Fixes commit 3d8e1ad
Ah, yes, you are right, the conditions are still wrong, I've fixed it again, now it should be OK.