No description
Find a file
okuji 5f968e1e61 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
Change the semantics of variable hooks. They now return	strings
	instead of error values.

	* util/i386/pc/grub-setup.c: Include grub/env.h.
	(setup): Use grub_device_set_root instead of grub_env_set.

	* kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
	grub_env_get instead of grub_device_set_root and
	grub_device_get_root, respectively.

	* kern/main.c (grub_env_write_root): New function.
	(grub_set_root_dev): Register grub_env_write_hook for "root". Use
	grub_env_set instead of grub_device_set_root.

	* kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
	many variables.
	(grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
	rather than calling ENV->WRITE_HOOK afterwards.
	(grub_env_get): Return the result of ENV->READ_HOOK rather than
	passing a pointer of a pointer.
	(grub_register_variable_hook): Change the types of "read_hook" and
	"write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
	respectively.
	Allocate the default empty string on the heap, because this string
	may be freed later.

	* kern/device.c: Include grub/env.h.
	(grub_device_set_root): Removed.
	(grub_device_get_root): Likewise.
	(grub_device_open): Use grub_env_get instead of
	grub_device_get_root.

	* include/grub/env.h (grub_env_read_hook_t): New type.
	(grub_env_write_hook_t): Likewise.
	(grub_env_var): Change the types of "read_hook" and "write_hook"
	to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
	(grub_register_variable_hook): Likewise.

	* include/grub/device.h (grub_device_set_root): Removed.
	(grub_device_set_root): Likewise.

	* fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
	make sure that DIRNAME terminates with '/', so that
	grub_fat_find_dir will fail if PATH is not a directory.

	* commands/ls.c (grub_ls_list_files): Remove the qualifier const
	from DIRNAME.
	Use the qualifier auto for print_files and print_files_long.
	If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
	as a regular file.
	Put a newline only if there is no error.
	(grub_cmd_ls): Remove grub_ls_print_files, because this is not
	used.
2005-07-20 20:30:46 +00:00
boot 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 14:57:07 +00:00
commands 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
conf 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-16 22:06:33 +00:00
disk 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 20:26:07 +00:00
font 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 20:26:07 +00:00
fs 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
hello 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
include/grub 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
kern 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
loader 2005-07-17 Yoshinori Okuji <okuji@enbug.org> 2005-07-17 20:26:07 +00:00
normal 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-18 20:30:37 +00:00
partmap 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-18 22:21:41 +00:00
term 2005-05-08 Hollis Blanchard <hollis@penguinppc.org> 2005-06-21 02:33:52 +00:00
util 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
.cvsignore Initial revision 2002-12-27 08:53:07 +00:00
aclocal.m4 2005-07-09 Yoshinori Okuji <okuji@enbug.org> 2005-07-09 09:34:39 +00:00
AUTHORS 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
autogen.sh Initial revision 2002-12-27 08:53:07 +00:00
ChangeLog 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org> 2005-07-20 20:30:46 +00:00
config.guess Initial revision 2002-12-27 08:53:07 +00:00
config.h.in 2003-12-03 Marco Gerards <metgerards@student.han.nl> 2003-12-03 19:17:27 +00:00
config.sub Initial revision 2002-12-27 08:53:07 +00:00
configure 2005-07-12 Hollis Blanchard <hollis@penguinppc.org> 2005-07-12 22:36:43 +00:00
configure.ac 2005-06-30 Marco Gerards <metgerards@student.han.nl> 2005-06-30 10:21:37 +00:00
COPYING Initial revision 2002-12-27 08:53:07 +00:00
DISTLIST 2005-07-10 Yoshinori Okuji <okuji@enbug.org> 2005-07-10 07:57:49 +00:00
gencmdlist.sh 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org> 2005-03-18 18:16:26 +00:00
gendistlist.sh 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> 2005-03-19 17:49:19 +00:00
genfslist.sh 2005-07-03 Yoshinori Okuji <okuji@enbug.org> 2005-07-03 18:06:56 +00:00
genkernsyms.sh shinori K. Okuji <okuji@enbug.org> 2004-02-24 17:21:53 +00:00
genmk.rb 2005-07-03 Yoshinori Okuji <okuji@enbug.org> 2005-07-03 18:06:56 +00:00
genmodsrc.sh 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
gensymlist.sh 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
INSTALL 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
install-sh Initial revision 2002-12-27 08:53:07 +00:00
Makefile.in 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org> 2005-03-19 17:49:19 +00:00
mkinstalldirs Initial revision 2002-12-27 08:53:07 +00:00
NEWS 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
README 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> 2004-04-04 13:46:03 +00:00
stamp-h.in Initial revision 2002-12-27 08:53:07 +00:00
THANKS 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org> 2005-06-23 08:12:19 +00:00
TODO 2005-01-04 Hollis Blanchard <hollis@penguinppc.org> 2005-01-04 14:01:45 +00:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This is GRUB 2, the second version of the GRand Unified Bootloader.
GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more
robust, more powerful, and more portable.

Because GRUB 2 was formerly developed under the project PUPA, there
remain still many places where PUPA is used instead of GRUB 2. So
suppose that PUPA is a synonym of GRUB 2 for now.

See the file NEWS for a description of recent changes to GRUB 2.

See the file INSTALL for instructions on how to build and install the
GRUB 2 data and program files.

Please visit the official web page of GRUB 2, for more information.
The URL is <http://www.gnu.org/software/grub/grub.html>.



Because GRUB 2 is still in developmental stage, GRUB 2 is not for general
use (yet). For now, you can install GRUB 2 into a floppy by these
instructions:

$ configure && make
$ ./grub-mkimage -v -d . -o core.img _chain ext2
$ dd if=boot.img of=/dev/fd0 bs=512 count=1
$ dd if=core.img of=/dev/fd0 bs=512 seek=1

It would be easier to use Bochs <http://bochs.sf.net/> than a real
machine.