All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Idea: Single-time setting change
Date: Mon, 07 Jul 2008 09:35:11 -0400	[thread overview]
Message-ID: <1215437711.13229.46.camel@dv> (raw)
In-Reply-To: <cad70e530807061255l60598bd1q7ff00bcd51603952@mail.gmail.com>

On Sun, 2008-07-06 at 19:55 +0000, Jago Pearce wrote:
> Simply add an option to so that the
> default boot can be changed to something, but then changes back to it\'s
> original setting after that boot.
> 
> This way I can create an option of
> `Reboot into Windows`, walk away for a coffee and find it sitting in Windows or
> other o/s ready for me.
> 
> Unless perhaps there is already a way to do this?

It's a good idea, but there are some corner cases and details to be
worked out.

The most flexible approach would be to allow the user to select both the
default and the entry for the next boot, both at the boot time and from
the host OS.  At the boot time, we should strive to make it possible
entirely from the menu.  Yet we want the manually selected entry to be
remembered as default if no default was designated.  And we should try
to implement the fallback functionality from GRUB1.

It looks like we need 3 variables to be recognized:

nextdefault - default at the next boot.  Must be unset at the next boot.
default - the default entry unless nextdefault is set.
fallback - the entry to use if both nextdefault and default fail.

We need a key in the menu to set the default (and possibly to set
nextdefault and fallback).  The menu should export default and selection
to the GRUB scripts.  I think the "savedefault" command should do the
right thing without any options.  Or it should be coded in the GRUB
script.  Or it should be implicit (less desirable).

-- 
Regards,
Pavel Roskin



      reply	other threads:[~2008-07-07 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-06 19:55 Idea: Single-time setting change Jago Pearce
2008-07-07 13:35 ` Pavel Roskin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1215437711.13229.46.camel@dv \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.