[Bug 581652] New: installer should never unset boot flags on otherwise untouched primary partitions
http://bugzilla.novell.com/show_bug.cgi?id=581652 http://bugzilla.novell.com/show_bug.cgi?id=581652#c0 Summary: installer should never unset boot flags on otherwise untouched primary partitions Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mrmazda@earthlink.net QAContact: jsrain@novell.com Found By: --- Blocker: --- y2_logs: https://bugzilla.novell.com/attachment.cgi?id=262841 I deselected everything in install bootloader because there was no way to select to install to the only place I wanted the installer to touch, / on /dev/md3 (sda10 & sdb10). I didn't want anything already working to be disturbed by a new additional installation. Those deselects included "set active flag". The result was "no operating system found" on first real reboot. Unchecking the active flag box should never mean removing all flags from all primary partitions if Grub or Lilo are not installed on the MBR in place of generic MBR code. In this case, the only touching of any primary partitions was supposed to be simply to mount them. The / target was a logical. Therefore, the installer should not have touched any part of the MBR on any disk. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c1
--- Comment #1 from Felix Miata
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c2
--- Comment #2 from Felix Miata
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c4
Jozef Uhliarik
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c5
Felix Miata
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c6
--- Comment #6 from Felix Miata
You can uncheck checkbox and boot flag for device is not set (skip activating).
What happened was correct boot flag was set prior to starting installation. Then installation proceeded to remove the boot flag in conjunction with instruction given it to not touch MBR, which resulted in unbootable system, until I booted emergency mode to reset the flag that the installation process removed. There is no excuse for such an event to happen when the installer was told to do nothing at all involving MBR. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c7
--- Comment #7 from Felix Miata
Your problem is not (un)checked checkbox "Set active Flag in Partition Table for Boot Partition" but wrong configuration of GRUB settings.
Grub worked perfectly prior to beginning installation, so there was no reason to change it.
You are using MD RAID and it is software raid. In this case GRUB doesn't know to boot directly from MD RAID devices and configuration is written to real devices /dev/sda and /dev/sdb.
I disallowed writing to MBR, as writing to MBR was and is not necessary.
yast2-bootloader propose correct configuration and it is to write GRUB to MBR. Your changes "Boot from Root Partition broken booting.
If yast2-bootloader cannot Grub to /dev/mdx, then it can proceed to tell me so. That is no excuse to disrupt what already works.
Boot from MBR means write GRUB to MBR but Boot from Root Partition means write GRUB to "/" partition. If you deselect "Boot from MBR" your MBR is not updated and it can include random data or previous boot code which can point to other device.
My Grub was installed by me on /dev/sda1 precisely so it and I would control boot as managed by me and only me for multiple distro installations. I do not mount /dev/sda1 on /boot precisely so that no installation program will disrupt it. Yet, the openSUSE installer did precisely that, by removing its boot flag, and preventing the system from booting from the installed and working generic MBR code. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c8
Jozef Uhliarik
I installed to sda10/sdb10/md3 immediately prior to opening this bug.
Your logs from Description says that your "/" partition is /dev/md2 (sda9 and sdb9) If it is not right you attached wrong logs to bug. yast2-bootloader tries always propose bootable configuration of GRUB. It is necessary because installation has 2 steps separated by reboot. If you want to configure own settings of installation GRUB you can change it but it deosn't mean that your changes are correct and your system will be bootable. Next reason is that yast2-bootloader also check your other installed systems and add them to actual new installation. Yes of course it doesn't work on 100% because not all systems and type of devices are supported. If you are not satisfied with options of yast2-bootloader you can add your ideas for increasing usability or adding new featrures here: https://features.opensuse.org/ Handling MD RAID in yast2-bootloader is supported BUT real configuration is not saved to /dev/md* but to real devices /dev/sda* and /dev/sdb* also other important information is that supported is only RAID1. I am sorry but from logs in Description is clear that the original configuration of GRUB proposed by yast2-bootloader is correct and bootable. Your changes leads to unbootable system. I am not responsible for your changes. It is not my fault but your choice. yast2-bootloader is only small part of YaST and it is software. It doesn't support all options of GRUB and using MD RAID also decrease the number of your options how to configure bootloader. If you want to configure GRUB yourself without YaST assistance you can open yast2-bootloader -> Boot Loader Installation -> Boot Loader: "Do not Install Any Boot Loader". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c9
--- Comment #9 from Felix Miata
If you want to configure GRUB yourself without YaST assistance you can open yast2-bootloader -> Boot Loader Installation -> Boot Loader: "Do not Install Any Boot Loader".
I just tried to install again. Apparently I cannot select to install no bootloader, because if I try to it then refuses to create a menu.lst that the actual previously installed bootloader needs to find and use for its configfile stanza for booting M2. I could make my own M2 menu.lst, or an M2 emulation stanza complete with kernel and initrd lines, but either would have to be without the benefit of knowing what cmdline options M2 would like used. So, instead of installing no bootloader, I proceeded by selecting to install bootloader to custom location, without specifying anything in the typing box below the custom location checkbox. That succeeded in leaving the boot flag on the primary partition undisturbed, and left a usable menu.lst in /dev/md3's /boot/grub/ for use by the actual installed bootloader's configfile stanza pointing to M2. Note that if the previous or these y2logs claim installation to /dev/md2, then there's some other bug with the logging process, as both this and previous M2 installs went to /dev/md3. oS 11.0 lives on /dev/md1, and oS 11.1 lives on /dev/md2. This may or may not be related, but installation this time failed to create any initrd. I kept a copy of the initrd from the previous M2 install, restored it by booting 11.1, and thus was able to boot the fresh M2 install. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c10
--- Comment #10 from Felix Miata
(In reply to comment #5)
I installed to sda10/sdb10/md3 immediately prior to opening this bug.
Your logs from Description says that your "/" partition is /dev/md2 (sda9 and sdb9) If it is not right you attached wrong logs to bug.
Correct. I mistakenly attached logs from 11.1 which then and currently lives on md2/sda9/sdb9. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c11
Felix Miata
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c12
Jozef Uhliarik
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c13
Felix Miata
http://bugzilla.novell.com/show_bug.cgi?id=581652
http://bugzilla.novell.com/show_bug.cgi?id=581652#c14
--- Comment #14 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=581652
https://bugzilla.novell.com/show_bug.cgi?id=581652#c
Jozef Uhliarik
https://bugzilla.novell.com/show_bug.cgi?id=581652
https://bugzilla.novell.com/show_bug.cgi?id=581652#c15
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=581652
https://bugzilla.novell.com/show_bug.cgi?id=581652#c17
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=581652
https://bugzilla.novell.com/show_bug.cgi?id=581652#c
Ihno Krumreich
https://bugzilla.novell.com/show_bug.cgi?id=581652
https://bugzilla.novell.com/show_bug.cgi?id=581652#c18
Steffen Winterfeldt
participants (1)
-
bugzilla_noreply@novell.com