2009-05-16 Bean <bean123ch@gmail.com>

* include/grub/kernel.h (grub_module_header_types): Add type
	OBJ_TYPE_CONFIG.

	* kern/main.c (grub_load_config): New function.
	(grub_main): Call grub_load_config to read boot config.

	* grub-mkimage (generate_image): New parameter config_path.
	(options): New option --config.
	(main): Parse --config option, and pass it to generate_image.
This commit is contained in:
bean 2009-05-16 12:12:12 +00:00
parent 5cb5c9c210
commit 5e898c9d71
4 changed files with 70 additions and 4 deletions

View file

@ -31,6 +31,7 @@ struct grub_module_header
{
OBJ_TYPE_ELF,
OBJ_TYPE_MEMDISK,
OBJ_TYPE_CONFIG
} grub_module_header_types;
/* The size of object (including this header). */