> ----- Forwarded Message ---- > From: Pavel Roskin <pro...@gnu.org> > To: grub-devel@gnu.org > Sent: Sat, 19 June, 2010 2:38:26 > Subject: [PATCH] Support Fedora 13 initrd filenames > > Hello! > > The initial ramdisk on Fedora 13 is called "initramfs-${version}.img" unlike > older versions of Fedora, which used "initrd-${version}.img" > > The patch has been tested on Fedora 13. > > ChangeLog: > > * util/grub.d/10_linux.in: Add support for initrd images on Fedora 13. > > --- util/grub.d/10_linux.in 2010-06-09 18:43:25 +0000 > +++ util/grub.d/10_linux.in 2010-06-18 21:09:00 +0000 > @@ -114,8 +114,9 @@ > > initrd= > for i in "initrd.img-${version}" "initrd-${version}.img" \ > - "initrd-${version}" "initrd.img-${alt_version}" \ > - "initrd-${alt_version}.img" "initrd-${alt_version}"; do > + "initrd-${version}" "initramfs-${version}.img" \ > + "initrd.img-${alt_version}" "initrd-${alt_version}.img" \ > + "initrd-${alt_version}" "initramfs-${alt_version}.img"; do > if test -e "${dirname}/${i}" ; then > initrd="$i" > break > > > > --Regards, > Pavel Roskin
================ I applied the change detailed above on my PC running grub 1.98 and it worked well. It would be good also to boot Fedora partitions that lack Grub. In order to do that (with initrd) I have modified 90fallback, a file from os-prober v. 1.38. I am attaching the original file and a patch file. My changes were few: I added one line, changed another and added one comment line. The modified 90fallback works well on my PC with Fedora 13, and I expect it will work well with recent Fedora versions. I am not sure where upstream for os-prober is. I downloaded 1.38 from Debian Sid. So if this is not the right mailing list to propose changes to os-prober, please let me know where I should go. Note that there have been other requests for changes to this same file. For example, see this: https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/420900
90fallback.orig
Description: Binary data
--- 90fallback.orig 2010-06-22 23:47:38.873379339 +0100 +++ 90fallback 2010-06-22 23:54:43.525745560 +0100 @@ -28,8 +28,10 @@ # systems, since kernel.img could conceivably be a # kernel itself. initrdname2=$(echo "$kernfile" | sed -n 's/vmlinu[zx]\([0-9][0-9]*\)/kernel\1/p' | sed 's/$/.img/') + # Handle Fedora partitions without Grub + initrdname3=$(echo "$kernfile" | sed "s/vmlinu[zx]/initramfs\*/" | sed 's/$/.img/') foundinitrd=0 - for initrd in $(eval ls "$initrdname" "$initrdname2" 2>/dev/null); do + for initrd in $(eval ls "$initrdname" "$initrdname2" "$initrdname3" 2>/dev/null); do if [ -f "$initrd" ] && [ ! -L "$initrd" ]; then initrd=$(echo "$initrd" | sed "s!^$mpoint!!") result "$partition:$kernbootpart::$kernbasefile:$initrd:root=$mappedpartition"
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel