No description
This is a big change on saving a default entry. This change makes it possible to set up a quite robust system using GRUB. Now we do not use the second sector of Stage 2 to store an entry number but use the file /boot/grub/default. This file must be generated by grub-set-default, although this file is plain-text. * util/grub-set-default.in: New file. * util/grub-install.in (grub_set_default): New variable. Use /grub instead of /boot/grub on OpenBSD as well as NetBSD. Run grub-set-default to make a default file. * util/Makefile.am (sbin_SCRIPTS): Added grub-set-default. * stage2/stage2.c (run_menu): Change the fallback handling to support multiple fallback entries. (cmain): Likewise. Also, get a saved entry from a default file if possible, before reading a config file. * stage2/shared.h (DEFAULT_FILE_BUF): New macro. (DEFAULT_FILE_BUFLEN): Likewise. (CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN. (MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF. (fallback_entry): Removed. (fallback_entries): Declared. (fallback_entryno): Likewise. (MAX_FALLBACK_ENTRIES): New macro. * stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of FALLBACK_ENTRY. * stage2/builtins.c (fallback_entry): Removed. (fallback_entryno): New variable. (fallback_entries): Likewise. (init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES. (fallback_func): Rewritten completely. (savedefault_func): Likewise. * docs/grub.texi (grub-set-default): New direntry. (Installation): Describe grub-set-default for manual installations. (Making your system robust): New section. (Booting once-only): New subsection. (Booting fallback systems): Likewise. (fallback): Describe multiple fallback entries. (savedefault): Describe an optional argument. (Invoking grub-set-default): New chapter. (Future): Replaced with a description about GRUB 2. * configure.ac (AC_CONFIG_FILES): Added util/grub-set-default. |
||
---|---|---|
docs | ||
grub | ||
lib | ||
netboot | ||
stage1 | ||
stage2 | ||
util | ||
.cvsignore | ||
acinclude.m4 | ||
aclocal.m4 | ||
AUTHORS | ||
BUGS | ||
ChangeLog | ||
compile | ||
config.guess | ||
config.h.in | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
depcomp | ||
INSTALL | ||
install-sh | ||
MAINTENANCE | ||
Makefile.am | ||
Makefile.in | ||
missing | ||
mkinstalldirs | ||
NEWS | ||
README | ||
stamp-h.in | ||
THANKS | ||
TODO |
This is GNU GRUB, the GRand Unified Bootloader. GRUB is intended to provide important bootloader features that are missing from typical personal computer BIOSes: - provides fully-featured command line and graphical interfaces - recognizes fdisk partitions and BSD disklabels - can dynamically read Linux ext2fs, ReiserFS, JFS and XFS, BSD ufs, MS-DOS FAT16 and FAT32, Minix fs, and VSTa fs filesystems, plus hardcoded blocklists - can boot Multiboot-compliant kernels (such as GNU Mach), as well as standard Linux and *BSD kernels See the file NEWS for a description of recent changes to GRUB. If you are interested in the network support, see the file README.netboot under the directory netboot. See the file INSTALL for instructions on how to build and install the GRUB data and program files. See the GRUB manual for details about using GRUB as your boot loader. Type "info grub" in the shell prompt. Please visit the official web page of GNU GRUB, for more information. The URL is <http://www.gnu.org/software/grub/grub.html>.