From: jochen Date: Thu, 4 Jan 2001 13:38:24 +0000 (+0000) Subject: Call open_partition() even for MBR, so that part_start is correct. X-Git-Tag: 0.6.96~352 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71840f80e9d92551b52025dcf66adf957303b68b;p=thirdparty%2Fgrub.git Call open_partition() even for MBR, so that part_start is correct. This fixes a bug reported by Matthias Granberry . --- diff --git a/ChangeLog b/ChangeLog index 08a8e348a..ef0167e43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-01-04 Jochen Hoenicke + + * stage2/builtins.c (embed_func): Call open_partition() even for + MBR, so that part_start is correct. This fixes a bug reported by + Matthias Granberry . + 2000-12-22 OKUJI Yoshinori * stage2/disk_io.c (make_saved_active): Change the variable name diff --git a/stage2/builtins.c b/stage2/builtins.c index c7dd846eb..d890d7740 100644 --- a/stage2/builtins.c +++ b/stage2/builtins.c @@ -971,6 +971,10 @@ embed_func (char *arg, int flags) char mbr[SECTOR_SIZE]; char ezbios_check[2*SECTOR_SIZE]; + /* Open the partition. */ + if (! open_partition ()) + return 1; + /* No floppy has MBR. */ if (! (current_drive & 0x80)) {