[syslinux:master] hdt: Changing boot flag semantic in menu mode
syslinux-bot for Erwan Velu
erwanaliasr1 at gmail.com
Mon Apr 25 15:29:05 PDT 2011
Commit-ID: 64bade68d3ebde2c88135e5270e54e192d164692
Gitweb: http://syslinux.zytor.com/commit/64bade68d3ebde2c88135e5270e54e192d164692
Author: Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Wed, 13 Apr 2011 21:13:37 +0200
Committer: Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Wed, 13 Apr 2011 21:13:37 +0200
hdt: Changing boot flag semantic in menu mode
What we report is the presence of the boot flag and not the ability of a
partition to be bootable. A partition can have a valid bootloader with a
boot flag not set. So the 'Bootable' semantic was wrong.
---
com32/hdt/hdt-menu-disk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c
index 6862e04..0716b43 100644
--- a/com32/hdt/hdt-menu-disk.c
+++ b/com32/hdt/hdt-menu-disk.c
@@ -120,9 +120,9 @@ static void compute_partition_information(struct driveinfo *drive_info,
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
}
- snprintf(buffer, sizeof buffer, "Bootable : %s",
+ snprintf(buffer, sizeof buffer, "Boot Flag : %s",
(ptab->active_flag == 0x80) ? "Yes" : "No");
- snprintf(statbuffer, sizeof statbuffer, "Bootable: %s",
+ snprintf(statbuffer, sizeof statbuffer, "Boot Flag: %s",
(ptab->active_flag == 0x80) ? "Yes" : "No");
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
More information about the Syslinux-commits
mailing list