Your message dated Thu, 27 May 2010 13:48:44 +0100
with message-id <[email protected]>
and subject line Re: grub-common: fix grub-set-default and savedefault
has caused the Debian Bug report #567244,
regarding grub-common: fix grub-set-default and savedefault
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
567244: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567244
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grub-common
Version: 1.98~20100126-1
Severity: normal
Tags: patch

All:

This minor patch enables grub-set-default(8) and the savedefault
option to work correctly by reading the grubenv "saved_entry".

Regards,

--Tom


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files              5.0.0            Debian base system miscellaneous f
ii  dpkg                    1.15.5.6         Debian package management system
ii  gettext-base            0.17-8           GNU Internationalization utilities
ii  install-info            4.13a.dfsg.1-5   Manage installed documentation in 
ii  libc6                   2.10.2-5         Embedded GNU C Library: Shared lib
ii  libfreetype6            2.3.11-1         FreeType 2 font engine, shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.35       utility to detect other OSes on a 

Versions of packages grub-common suggests:
pn  grub-emu                      <none>     (no description available)
pn  multiboot-doc                 <none>     (no description available)

-- no debconf information
--- 00_header~  2010-01-27 22:35:16.946281548 -0600
+++ 00_header   2010-01-27 22:28:44.365351645 -0600
@@ -43,6 +43,9 @@
   load_env
 fi
 set default="${GRUB_DEFAULT}"
+if [ \${saved_entry} ]; then
+  set default="\${saved_entry}"
+fi
 if [ \${prev_saved_entry} ]; then
   set saved_entry=\${prev_saved_entry}
   save_env saved_entry

--- End Message ---
--- Begin Message ---
On Wed, Jan 27, 2010 at 11:16:33PM -0600, Tom Marble wrote:
> Package: grub-common
> Version: 1.98~20100126-1
> Severity: normal
> Tags: patch
> 
> All:
> 
> This minor patch enables grub-set-default(8) and the savedefault
> option to work correctly by reading the grubenv "saved_entry".

You should use GRUB_DEFAULT=saved in /etc/default/grub instead, which
obviates the need for this.  Now, that wouldn't have worked quite so
well in the version you reported this bug against; since then,
GRUB_SAVEDEFAULT=true has been split out as a separate option, which
means you can use GRUB_DEFAULT=saved without necessarily implying that a
new default should be saved on every boot (useful with grub-reboot).

In other words, the semantics in 1.98 are:

  GRUB_DEFAULT=saved
    use the saved entry as the default
  GRUB_SAVEDEFAULT=true
    when an entry is selected, save it as the next default

Let me know if this is inadequate.

Thanks,

-- 
Colin Watson                                       [[email protected]]


--- End Message ---

Reply via email to