From 71840f80e9d92551b52025dcf66adf957303b68b Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 4 Jan 2001 13:38:24 +0000 Subject: [PATCH] Call open_partition() even for MBR, so that part_start is correct. This fixes a bug reported by Matthias Granberry . --- ChangeLog | 6 ++++++ stage2/builtins.c | 4 ++++ 2 files changed, 10 insertions(+) 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)) {