2002-04-04 Yoshinori K. Okuji <okuji@enbug.org>

* stage2/builtins.c (setup_func): Don't embed a drive number, if
	unnecessary.
This commit is contained in:
okuji 2002-04-04 14:52:21 +00:00
parent 4c73310092
commit cfce0b1fae
3 changed files with 18 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2002-04-04 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c (setup_func): Don't embed a drive number, if
unnecessary.
2002-03-29 Yoshinori K. Okuji <okuji@enbug.org> 2002-03-29 Yoshinori K. Okuji <okuji@enbug.org>
* docs/grub.texi (General commands): Added ``pager'' into the * docs/grub.texi (General commands): Added ``pager'' into the

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB "8" "March 2002" "grub (GNU GRUB 0.92)" FSF .TH GRUB "8" "April 2002" "grub (GNU GRUB 0.92)" FSF
.SH NAME .SH NAME
grub \- the grub shell grub \- the grub shell
.SH SYNOPSIS .SH SYNOPSIS

View file

@ -3836,8 +3836,8 @@ setup_func (char *arg, int flags)
arguments. */ arguments. */
sprint_device (installed_drive, installed_partition); sprint_device (installed_drive, installed_partition);
#ifdef NO_BUGGY_BIOS_IN_THE_WORLD #if 1
/* I prefer this, but... */ /* Don't embed a drive number unnecessarily. */
grub_sprintf (cmd_arg, "%s%s%s%s %s%s %s p %s %s", grub_sprintf (cmd_arg, "%s%s%s%s %s%s %s p %s %s",
is_force_lba? "--force-lba" : "", is_force_lba? "--force-lba" : "",
stage2_arg? stage2_arg : "", stage2_arg? stage2_arg : "",
@ -3848,11 +3848,14 @@ setup_func (char *arg, int flags)
stage2, stage2,
config_filename, config_filename,
real_config_filename); real_config_filename);
#else /* ! NO_BUGGY_BIOS_IN_THE_WORLD */ #else /* NOT USED */
/* Actually, there are several buggy BIOSes in the world, so we /* This code was used, because we belived some BIOSes had a problem
may not expect that your BIOS will pass a booting drive to stage1 that they didn't pass a booting drive correctly. It turned out,
correctly. Thus, always specify the option `d', whether however, stage1 could trash a booting drive when checking LBA support,
INSTALLED_DRIVE is identical with IMAGE_DRIVE or not. *sigh* */ because some BIOSes modified the register %dx in INT 13H, AH=48H.
So it becamed unclear whether GRUB should use a pre-defined booting
drive or not. If the problem still exists, it would be necessary to
switch back to this code. */
grub_sprintf (cmd_arg, "%s%s%s%s d %s %s p %s %s", grub_sprintf (cmd_arg, "%s%s%s%s d %s %s p %s %s",
is_force_lba? "--force-lba " : "", is_force_lba? "--force-lba " : "",
stage2_arg? stage2_arg : "", stage2_arg? stage2_arg : "",
@ -3862,7 +3865,7 @@ setup_func (char *arg, int flags)
stage2, stage2,
config_filename, config_filename,
real_config_filename); real_config_filename);
#endif /* ! NO_BUGGY_BIOS_IN_THE_WORLD */ #endif /* NOT USED */
/* Notify what will be run. */ /* Notify what will be run. */
grub_printf (" Running \"install %s\"... ", cmd_arg); grub_printf (" Running \"install %s\"... ", cmd_arg);