Bug 580176
Summary: | Wishlisht: please support other linux distributions like Ubuntu while automatically configuring bootloader | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | k.t. <cooling.crystals> | ||||||
Component: | anaconda | Assignee: | Brian Lane <bcl> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 14 | CC: | cpanceac, franta, gnu, hedayatv, jonathan, micadeyeye, richardfearn, vanmeeuwen+fedora | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-07-13 09:36:11 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 678456 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
k.t.
2010-04-07 16:20:31 UTC
Could you add a copy of your /boot/grub/grub.conf file for reference? Created attachment 405074 [details]
grub.conf
Created attachment 405075 [details]
fstab
Could it be that I choose to not mount the other partitions during installation?
This is what I usually do in Ubuntu, I do not mount other operating system partitions. So it's less work then I reinstall or reformat on of them.
There are a couple parts to this. One is that anaconda doesn't 'merge' with a previous grub.conf (assuming you use the same /boot partition as you used for Ubuntu). It also doesn't do any kind of scan of available partitions to detect other distributions. This wouldn't work well anyway, it would be very difficult to determine kernel boot parameters, etc. The right way to fix this is to allow reuse of an existing /boot partition and merge the fedora grub entry with pre-existing entries from other distributions on the system. (In reply to comment #4) > There are a couple parts to this. One is that anaconda doesn't 'merge' with a > previous grub.conf (assuming you use the same /boot partition as you used for > Ubuntu). I am not using separate /boot partitions, my setup is simple: /fedora /ubuntu 10.04 /ubuntu 9.10 /home (except for fedora) /swap > It also doesn't do any kind of scan of available partitions to detect > other distributions. This wouldn't work well anyway, it would be very difficult > to determine kernel boot parameters, etc. It works excellent for Ubuntu however. I just reinstalled grub on MBR using Ubuntu 9.10 live CD. Now I booted successfully into Ubuntu 10.04 and run "sudo update-grub". It found Fedora 13 and added the entry into boot menu. Interesting. I'll have to take a look at Ubuntu and see what they are doing to find the location of /boot/grub/grub.conf I just installed Fedora 13 (from the Live CD) next to the Ubuntu on my Atom netbook. (I asked it to shrink the existing Ubuntu ext4 partition, which it did.) Fedora clobbered the boot block, without even asking me. When I got back into Ubuntu via a recovery disk, Ubuntu's update-grub was unable to add a working entry for Fedora. If the Fedora partitions aren't mounted, update-grub doesn't even try looking for them. If they ARE mounted, you indeed get a Fedora 13 entry added to the grub prompt, but booting from it doesn't succeed, apparently because it tries to boot from the root partition, not the boot partition. It probably worked for k.t. because he has a custom partition setup. I used the default in Ubuntu (just / and swap, which sit next to the unused shrunken Windows partitions on this netbook) and the default in Fedora (/boot plus an LVM partition that everything else gets dumped into). Ubuntu didn't even load LVM by default, so it couldn't even SEE most of the Fedora partitions until I installed lvm on it. In short -- y'all guys ought to do some integration to make coexistence seamless. And long before that, Fedora should be changed so it NEVER clobbers the boot block without asking. (The installation manual said it would ask, but I was watching for that question and it never came up.) This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping *** Bug 645953 has been marked as a duplicate of this bug. *** os-prober (bug #678442) is used by Debian, and is probably what is used in Ubuntu too. It is also being used by grub2 to detect other OSes in the system. It can be adopted to grub 1 too, and a simple example (a modified grub2 script) is available at [1], which generates entries for other installed OSes. [1] http://hedayat.fedorapeople.org/scripts/grub1-other-os-prober.sh Thanks. *** Bug 640943 has been marked as a duplicate of this bug. *** os-prober is now in Fedora. in f16 rc5, rescue mode, grub2-install does not add to grub menu any other installed os, be it, fedora 14, windows xp or other linux versions (mandriva, suse). should i open a new bug for this? This is due to bug #678456. Since grub2 RPM doesn't depend on os-prober, I think you are missing os-prober. Now in Fedora 16, grub2-mkconfig can successfully detect other OSes. However, when I installed Fedora 16 TC1, it didn't detect my own Fedora 15 installation in another partition. I wonder if it has anything to do with my Fedora 15 being installed on an LVM partition (as I think anaconda doesn't activate LVM partitions in that step). (on the other hand my /boot partition is separate...) Well, this bug is fixed. However, bug #825236 is still there. |