Re: Problems with grub-reboot/savedefault/default=saved

2010-02-25 Thread Colin Watson
On Wed, Jan 06, 2010 at 09:22:15PM -0800, Jordan Uggla wrote: On Tue, Jan 5, 2010 at 3:08 AM, Colin Watson cjwat...@ubuntu.com wrote: 2: Setting GRUB_DEFAULT=saved in /etc/default/grub also enables savedefault functionality. There are many people who would want to use grub-reboot and

Re: Problems with grub-reboot/savedefault/default=saved

2010-01-06 Thread Jordan Uggla
On Tue, Jan 5, 2010 at 3:08 AM, Colin Watson cjwat...@ubuntu.com wrote: 2: Setting GRUB_DEFAULT=saved in /etc/default/grub also enables savedefault functionality. There are many people who would want to use grub-reboot and grub-set-default without savedefault. The second patch adds a separate

Re: Problems with grub-reboot/savedefault/default=saved

2010-01-05 Thread Colin Watson
On Wed, Dec 16, 2009 at 02:28:03PM -0800, Jordan Uggla wrote: 1: grub-reboot doesn't restore the default after rebooting, making it effectively equivalent to grub-set-default. This is because the savedefault functionality currently saves the entry you boot from as the new default even when

Re: Problems with grub-reboot/savedefault/default=saved

2010-01-05 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Colin Watson wrote: 4: Even with the first grub-reboot fix the default is still not restored when grubenv is not writable ( /boot on lvm for example ). Since grub-reboot can't work without a writable grubenv it's at least safer to boot into the real default instead of the temporary default.

Re: Problems with grub-reboot/savedefault/default=saved

2010-01-05 Thread Colin Watson
On Tue, Jan 05, 2010 at 12:33:23PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: Colin Watson wrote: I don't understand why /boot on LVM should mean that grubenv is not writable. The point of grubenv is to be a short chunk of contiguous reserved disk space which can be written by

Re: Problems with grub-reboot/savedefault/default=saved

2009-12-22 Thread Colin Watson
On Wed, Dec 16, 2009 at 02:28:03PM -0800, Jordan Uggla wrote: There are multiple problems with grub-reboot/savedefault/default=saved. Hi, I do intend to follow up on this; however, due to Christmas holidays and the like it won't be until the new year. I'm just sending this message to let you

Re: Problems with grub-reboot/savedefault/default=saved

2009-12-20 Thread Jordan Uggla
I found another bug. For some reason grub-reboot ( the utility ) checks if prev_saved_entry ( which has just been set equal to saved_entry ) is empty ( zero length or unset ), and if it is unsets it. This makes grub-reboot again equivalent to grub-set-default the first time you use it.

Problems with grub-reboot/savedefault/default=saved

2009-12-16 Thread Jordan Uggla
There are multiple problems with grub-reboot/savedefault/default=saved. 1: grub-reboot doesn't restore the default after rebooting, making it effectively equivalent to grub-set-default. This is because the savedefault functionality currently saves the entry you boot from as the new default