[Bug 357290] New: 'yast2 bootloader' module rewrites grub generic code when leaving with no changes, which may corrupt grub
https://bugzilla.novell.com/show_bug.cgi?id=357290 Summary: 'yast2 bootloader' module rewrites grub generic code when leaving with no changes, which may corrupt grub Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: root@proximasociale.cz QAContact: jsrain@novell.com Found By: --- i needed to reinstall my 'fallen into heresy' windows and then i'd needed to restore grub bootloader. I tried at first stance opensuse 10.3 install dvd, because i'd read somewhere, that it supports bootloader restoration. so, I'd found relevant section (install-methods->other->expert-tools->bootloader-restoration ..), but there i faced to some error, nothing was written to disk. I rebooted then into knopix live cd and :: mkdir /mnt/boot mount /dev/sda2 /mnt/boot ## i have separated boot partition grub-install --root-directory=/mnt /dev/sda ## 'chroot' is not neccessary << i'd rewrited generic grub code into mbr, using suse settings (original by yast created menu.lst is then used).. Everything was ok, but one thing changed. I lost default suse "boot-theme" and it was replaced with 'old-style' grub design. I'd launched 'yast2 bootloader' for check, how it things about my restored grub and if i could there rewrite grub again, which will result into 'original distributed suse grub' .. i found there, that this is the same module as on install dvd, so i'd leaved with no changes this module via 'finish' button. It rewrites then grub, which resulted into corrupted bootloader and restoring it with knoppix again.. solution:: order grub to do not rewrite bootloader code, if no changes are made. Best Regards ps. if u need logs, i forgot command for storing that (y2logs or something similar), so remind me it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User chrubis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c1 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |root@proximasociale.cz --- Comment #1 from Cyril Hrubis <chrubis@novell.com> 2008-02-01 04:24:49 MST --- See http://en.opensuse.org/Bugs/YaST and attach logs. ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User root@proximasociale.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c2 daniel pecka <root@proximasociale.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|root@proximasociale.cz | --- Comment #2 from daniel pecka <root@proximasociale.cz> 2008-02-04 03:16:06 MST --- Created an attachment (id=193005) --> (https://bugzilla.novell.com/attachment.cgi?id=193005) here are your logs .. ad.1) Howto reproduce it:: 1) just set yourself for moment such a malicious|stupid user and destroy your grub // you may skip this step 2) Try to repair grub with "feature" on suse install DVD -- i saw errors and nothing was written on disk 3) reboot to your favourite live-cd (in my case knoppix) and repair grub there: // in my case steps were: $ su $ fdisk -l // ouch, my separated boot partition is sda2 $ mkdir /mnt/boot $ mount /dev/sda2 /mnt/boot $ grub-install --root-directory=/mnt /dev/sda $ reboot 4) everything should be ok, but default nice-colored suse theme is replaced with old-style grub menu, original menu.lst from suse distribution is used 5) so boot into suse and launch:: yast2 bootloader 6) do none changes and leave it via Finish button (immediately when launched) and reboot .. 7) check, if grub is corrupted again -- in my case yes Best Regards -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User root@proximasociale.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c3 --- Comment #3 from daniel pecka <root@proximasociale.cz> 2008-02-04 03:29:36 MST --- ps. i thing, that for this bug should be increased severity to major. I really like linux and suse, but i generally avoid of yast, because when i try it, then it will make more damage then good. This is very good example of (in my opinion) yast baffling and dangerous behaviour .. ie:: why it rewrites something when no changes made?? And why that corrupts some component? because at first stance :: reinstalling grub while every finish of that module is not very smart.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |juhliarik@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User root@proximasociale.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c4 --- Comment #4 from daniel pecka <root@proximasociale.cz> 2008-02-06 07:33:59 MST --- sorry. i do not want to insult someone, but i had reported more yast bugs, and in most cases they were matched as resolved in first two comments. i understand good to reason, why it is not so easy to create some usable configuring module, if should be expected, that sometimes some additional interventions into .conf files needed to be made by side of user using yast, but in this case, original yast .conf is used as it is. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User root@proximasociale.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c5 --- Comment #5 from daniel pecka <root@proximasociale.cz> 2008-02-06 07:46:16 MST --- +global work-around could be then some "registered" and known options for each modules, accessible via buttons at concrete module iface and rest of directly unsupported option should be accesible via line editor in that module, because in most cases is form :: variable = value for example, great and usable samba yast module works good till main samba conf file is edited. It survives some changes, but many not. Base options can be parsed correctly, but some additionals corrupts samba (or better said, yast corrupts samba if can not handle with that additionals) and nothing matter, that especially this module has "included-editor" for this kind of options. Regards by ntz -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User root@proximasociale.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c6 --- Comment #6 from daniel pecka <root@proximasociale.cz> 2008-03-22 06:07:23 MST --- ping. i thing that for this issue should be increased severity, because main problem:: steps to restore grub after windows reinstall, as is described in suse manual, is simply not working (at least for me) .. regards ntz -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c7 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@novell.com --- Comment #7 from Josef Reidinger <jreidinger@novell.com> 2008-09-23 00:52:23 MDT --- Thats strange, from log I see, that 1) grub write only to root-sector not to mbr (in yast) 2) yast recognize grub-stage1 in MBR 3) yast install generic boot code to MBR (jozo - should this broke something?) daniel - Is your windows Vista? because 10.3 doesn't support multi-boot with vista and rewrite some Vista checksum. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |visnov@novell.com Component|YaST2 |Bootloader -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 Jozef Uhliarik <juhliarik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User dpecka@techniservit.cz added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c8 Daniel Pecka <dpecka@techniservit.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dpecka@techniservit.cz --- Comment #8 from Daniel Pecka <dpecka@techniservit.cz> 2008-12-23 03:46:54 MST --- no, it's about windows xp .. regards -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=357290 User juhliarik@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=357290#c9 Jozef Uhliarik <juhliarik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Jozef Uhliarik <juhliarik@novell.com> 2009-01-20 07:14:20 MST --- fix in trunk for opensuse11.2 and there probably will be update for openSUSE 11.1 also fixed for sles11 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com