Comment 7 for bug 420900

Revision history for this message
pegasus (wit000) wrote :

I suspect the problem is in /usr/lib/linux-boot-probes/mounted/90fallback

   initrdname=$(echo "$kernfile" | sed "s/vmlinu[zx]/initrd\*/")
   foundinitrd=0
   for initrd in $(eval ls $initrdname 2>/dev/null); do
    if [ -f "$initrd" ] && [ ! -L "$initrd" ]; then
     initrd=$(echo "$initrd" | sed "s!^$mpoint!!")
     result "$partition:$kernbootpart::$kernbasefile:$initrd:root=$mappedpartition"
     exitcode=0
     foundinitrd=1
    fi
   done
   if [ "$foundinitrd" = 0 ]; then
    result "$partition:$kernbootpart::$kernbasefile::root=$mappedpartition"
    exitcode=0
   fi

If I understand correctly, the script only looks for the name initrdxxxx, while fedora calls it initramfsxxx.img. (What is "\*" in the first line for ?)
There may still be something wrong in the next few lines. I have tried changing "initrd\*" to "initramfs", still could not find the file. Yes, I know it is not a good idea to hard code the file name, just trying to locate the problem.