Fetching contributors…
Cannot retrieve contributors at this time
98 lines (72 sloc) 3.85 KB
| grub-choose-default |
| |
| Copyright 2007-2010, David Mohr <> |
| |
| Version 1.2, 2014-04-XX |
| |
| Released under the GNU GPL v2 or higher |
| This is free software; see the source for copying conditions. There is NO |
A simple GUI program to set your grub default for the next reboot. This
program only works with the "new" grub, i.e., version 1.98+. If you are using
grub-0.9x (grub-legacy), then please use the previous v0.3 release.
Grub-choose-default works both under Linux and Windows (see README.win32). It
should run under other Unices as well, but has not been tested (user reports
are welcome).
What it does is:
1. Display your boot menu options, highlighting the current default.
2. After clicking on one of the buttons, the selected entry will either be:
- set as the new default, or
- be used for the next reboot only ('once').
3. Optionally end your session (aka reboot / logout menu).
* Permissions:
Step 2 requires root permissions. Grub-choose-default will call:
$ sudo grub-set-default 'New Default'
$ sudo grub-reboot 'New Default For Next Reboot'
This requires an entry in sudoers with the NOPASSWD attribute. For example:
$user ALL=(root) NOPASSWD: /usr/sbin/grub-set-default, NOPASSWD: /usr/sbin/grub-reboot
Where $user is your user name.
Running grub-choose-default as root is not recommended!
* Session Logout:
Logging out is dependent on your desktop environment. Example scripts are
included in the reboot/ subdirectory. To use this functionality, you have to
copy the script you want to use to $XDG_CONFIG_DIR/grub-choose-default/reboot .
$XDG_CONFIG_DIR usually is ~/.config .
If anyone can come up with a script that autodetects the DE and calls the
appropriate logout command, please send me a copy and I will include it.
* Windows 7
Windows 7 is annoying since there is no good Linux filesystem drive support.
The workaround known to me is to use Ext2IFS, install it in Windows Vista
mode. It will work, but forget the assigned drive after every reboot.
Grub-choose-default supports running a 'mount' script at start-up time. If you
use 'mountvol' to find out the name of the volume you need to mount, you can
adjust the script 'mount.vbs' and have the volume get mounted automatically.
See README.win32 for more details.
* To Do / Known limitations:
If you are interested in any of these, please let the author know.
- Internationalization
- Improve build scripts
* Feedback:
Please email me with any questions, comments or if you should find a bug at .
* Acknowledgments:
Many thanks to Kjell Braden for sending some patches and getting
grub-choose-default into debian!