Support Fedora 13 initrd filenames
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 33 lines
----- Forwarded Message ----
From: Pavel Roskin <[email protected]>
To: [email protected]
Sent: Sat, 19 June, 2010 2:38:26
Subject: [PATCH] Support Fedora 13 initrd filenamesHello!
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.
grub.d/10_linux.in 2010-06-18 21:09:00 +0000 renamed from grub.d/10_linux.in 2010-06-09 18:43:25 +0000 +0
-0@@ -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
Quoted 2 lines
--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 renamed from 90fallback.orig +3 -1
@@ -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"
Colin Watson
AppliedQuoted 5 lines · Piscium
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.
I applied this to os-prober's revision control system today. Thanks!
Quoted 3 lines
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.
os-prober is maintained as part of the debian-installer project. Please file bugs about it on the os-prober package in Debian.
Quoted 3 lines
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
I've arranged for that bug to be closed once this change reaches Ubuntu.
Regards,
Signature · 1 line
Colin Watson [[email protected]]
Quoted 8 lines · Colin Watson
Quoted 5 lines · Piscium
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.
I applied this to os-prober's revision control system today. Thanks!
Thanks.
Quoted 6 lines
Quoted 3 lines
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.
os-prober is maintained as part of the debian-installer project. Please file bugs about it on the os-prober package in Debian.
I was wondering, what is the status of os-prober vis–à–vis grub2? Is it a required package or optional package? Is it considered part of grub2 or is it an external package?
Quoted 17 lines
Quoted 4 lines
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/420900I've arranged for that bug to be closed once this change reaches Ubuntu.
Regards,
--
Colin Watson [[email protected]]_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 6 lines · Piscium
Quoted 5 lines · Colin Watson
Quoted 3 lines · Piscium
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.
Quoted 6 lines
Quoted 2 lines
os-prober is maintained as part of the debian-installer project. Please file bugs about it on the os-prober package in Debian.
I was wondering, what is the status of os-prober vis–à–vis grub2? Is it a required package or optional package? Is it considered part of grub2 or is it an external package?
It's an optional (though very useful) add-on. It is not part of GRUB; it is part of the Debian installer project.
Signature · 1 line
Colin Watson [[email protected]]