Bug 103878

Summary: normal grub menu after "Suspend computer"
Product: [openSUSE] SUSE LINUX 10.0 Reporter: peter czanik <peter>
Component: Mobile DevicesAssignee: Forgotten User ZhJd0F0L3x <forgotten_ZhJd0F0L3x>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: aj, behlert, jens-novell, novell
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description peter czanik 2005-08-10 16:31:46 UTC
In earlier versions, when I used "Suspend computer", SuSE Linux started
immediatelly on next boot. We were told, that it's for our good, as this way we
can't mess up filesystems from other OS-es.
Now, after "Suspend computer" is used, the normal grub boot menu comes up on
next boot, allowing me to choose anything I want. This should be changed back.
Comment 1 Forgotten User ZhJd0F0L3x 2005-08-10 17:12:02 UTC
grub no longer supports our function.
Torsten, this is the function we had until now:

---------------------------
# grub-once()
# does the same as the grubonce script from the grub package:
# selects which menu entry to boot next.
grub-once() {
    DEBUG "running grub-once $1" DIAG
    echo -e "savedefault --stage2=/boot/grub/stage2 --default=$1 --once\nquit"\
    | grub --batch
}
-------------------------------

what do i need to change?
Comment 2 Stephan Kulow 2005-08-10 19:31:41 UTC
*** Bug 103861 has been marked as a duplicate of this bug. ***
Comment 3 Torsten Duwe 2005-08-11 09:25:42 UTC
Same cause, different symptom. 

*** This bug has been marked as a duplicate of 95082 ***
Comment 4 Torsten Duwe 2005-09-02 16:28:47 UTC
"/usr/sbin/grubonce <n>" was the interface to be used. You're making  
assumptions about grub internals with that script. These internals have  
changed now and the "once"-logic could be moved out.  
  
 "running grub-once ..." ??? 
 
Comment 5 Forgotten User ZhJd0F0L3x 2005-09-02 16:32:27 UTC
ok, i will fix this. thanks.
Comment 6 Forgotten User ZhJd0F0L3x 2005-09-02 19:46:15 UTC
fix is in CVS, no package submitted yet. Shall we do this for beta5/RC1?
Comment 7 Andreas Jaeger 2005-09-03 11:45:42 UTC
PLease submit!
Comment 8 Forgotten User ZhJd0F0L3x 2005-09-03 20:26:38 UTC
I'll fetch the latest grub and test over the weekend to prepare a package for
submission on monday morning.
Comment 9 Forgotten User ZhJd0F0L3x 2005-09-05 08:01:21 UTC
fixed, but no package submitted yet
Comment 10 Forgotten User ZhJd0F0L3x 2005-09-05 16:06:14 UTC
package is submitted, should be fixed
Comment 11 Jens Benecke 2005-09-14 06:53:57 UTC
Hello, 
I updated two computers from Suse 9.3 to 10.0rc1. 
 
Desktop - upgraded using Yast + System Upgrade, then reboot 
Notebook - upgraded using network install boot CD 
 
On my notebook, this works as advertised (no pause in Grub after suspend to 
disk). On my desktop, this does not work (I get the normal Grub menu).