From 4e5a54c2f99589817cfd80ae46874d3ad591e8ed Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 9 Sep 2017 16:36:43 +0200 Subject: [PATCH] Swapped at recognition time the precendence of MBR properties "isohybrid" and "protective-msdos-label" --- libisofs/fs_image.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index 6a511ea..c6b3a4c 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -5001,12 +5001,13 @@ int iso_impsysa_report(IsoImage *image, struct iso_impsysa_result *target, if (sa_type == 0) { if ((sao & 3) || sa_sub == 1 || sa_sub == 2) { strcat(msg, " MBR"); - if (sao & 1) - strcat(msg, " protective-msdos-label"); - else if (sao & 2) + if (sao & 2) strcat(msg, " isohybrid"); - else if (sa_sub == 1) + else if (sao & 1) + strcat(msg, " protective-msdos-label"); + else if (sa_sub == 1) { strcat(msg, " CHRP"); + } if ((sao & (1 << 14)) && !(sao & 2)) strcat(msg, " grub2-mbr"); sprintf(msg + strlen(msg), " cyl-align-%s",