Bugzilla – Bug 128617
[powersave] optional do not modify MBR
Last modified: 2006-10-18 12:58:12 UTC
Right now powersaved modifies mbr upon suspend-to-disk in order to make sure that next boot will use proper kernel. This is smart, but I have 2 OSs installed - one is SuSE 10.1 and second is WinXP that came with my laptop. And after linux s-t-d I'd like to get boot menu again. Please make mbr modification upon suspend configurable in YaST and not hardcoded in /usr/lib/powersave/scripts/prepare_suspend_to_disk. Right now I had to comment out the following line in this file: grub-once $NEXT_BOOT > /dev/null 2>&1 Thanks in advance.
This is for security reasons. If you modify the filesystem that you suspended while working with an other OS, you are in big trouble and may loose all your data. I don't like the current solution myself... We should at least provide a config variable for it (there is already one?)... Seife?
Yes there is: POWERSAVE_BOOT_LOADER in /etc/sysconfig/powersave/common. If you set this to 'OTHER' this should not happen on resume. Close the bug?
Good, just set it to "OTHER". Can we have this option configurable within yast somewhere in "Power Management" section?
i really do not want to have this easily configurable without reading the documentation. It really is a great way to lose your data if you boot other operating systems and mount filesystems while one OS is suspended, so i'd like to keep this as an "expert" option and not easily accessible in YaST. I'll reassign this to PM to decide what to do.
I have only 2 OSs installed on my laptop - WinXP Home and suse 10.1. I think it's possible to detect if there's other linux kernel boot option in grub and only in this case only modify bootloader. In my case I'd really like to suspend-to-disk in linux and choose windows on very next boot from grub boot menu instead of booting directly in linux...
yes, and i want to prevent exactly this to save unexperienced users from losing your data. Users who know what they are doing will surely find the bootloader variable and change it to somehting different than GRUB :-)
Let's document this a bit better but I agree with Stefan, we have to avoid dataloss here.
Well, i am open to suggestions on how to improve the documentation. Would a powersave FAQ on opensuse.org make sense?
Yes, such a page would be fine...
Stefan? What is the status here?
somebody needs to write the FAQ :-)
Has this been done meanwhile?
No. Anyway, it's not a bug, it's a feature.