Ok, I made it work by changing the line : initrdname=$(echo "$kernfile" | sed "s/vmlinu[zx]/initrd\*/")
to initrdname="$(echo "$kernfile" | sed "s/vmlinu[zx]/init\*/").img" With this change, the script is now looking for the file name init*[kernel version].img, instead of initrd[kernel version]. It works for now, but still not perfect for generic use. I have to use " .img " instead of " .* " because some kernel version numbers have an extra ".PAE" in them. Using " .* " has caused multiple matches. I am looking for a way to have the script matching either ".img" or ".gz" without adding any "if", so the script can be for generic use, not specific to fedora. -- grub2 error detecting Fedora"initrd" https://bugs.launchpad.net/bugs/420900 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
