Hello!

On Tue, 2006-05-02 at 17:52 +0200, adrian15 wrote:
> If I find it useful I will add it to Super Grub Disk (One of its 
> components its a fork of Grub 0.97)

I've never heard of it.  It looks like an interesting project.  Although
I would prefer if you used grub2.  It's better not to fork the
development without serious reasons.

> I've never came across this problem although I understand it.
> I don't know if it will be difficult to integrate it into my Grub fork 
> now that it has the call and back commands (equivalent to source command 
> in bash)

The patch can be applied manually.  The adjusted patch is attached.

An unrelated comment concerning the quality of sources.  The sources are
full of backup files and rejects.  Perhaps you should use a version
control system and only package the files that are under version
control.  Version control also gives you a much better way to access the
original files than looking for *.orig.

-- 
Regards,
Pavel Roskin
--- stage2/stage2.c
+++ stage2/stage2.c
@@ -1082,7 +1082,10 @@ menu_restart:
 		  *(new_heap++) = 0;
 
 		  if (config_entries)
-		    run_menu (heap, NULL, new_num_entries, new_heap, 0, 4);
+		    {
+		      current_entryno = first_entry + entryno;
+		      run_menu (heap, NULL, new_num_entries, new_heap, 0, 4);
+		    }
 		  else
 		    {
 		      cls ();
@@ -1202,7 +1205,8 @@ menu_restart:
 	cur_entry = get_entry (config_entries, first_entry + entryno, 1);
 
       /* Set CURRENT_ENTRYNO for the command "savedefault".  */
-      current_entryno = first_entry + entryno;
+      if (config_entries)
+	current_entryno = first_entry + entryno;
 
         menu_array[menu_level].cur_entry=cur_entry;
         menu_array[menu_level].entryno=entryno;
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to