dracut icon indicating copy to clipboard operation
dracut copied to clipboard

fix(dracut-initramfs-restore.sh): fix initramfs path detection

Open ryncsn opened this issue 3 years ago • 1 comments

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

ryncsn avatar Sep 19 '22 18:09 ryncsn

Ah, yes, you are right, the conditions are still wrong, I've fixed it again, now it should be OK.

ryncsn avatar Sep 21 '22 05:09 ryncsn