Changeset 3570 for branches


Ignore:
Timestamp:
Apr 26, 2016, 3:08:04 PM (3 years ago)
Author:
bruno
Message:
  • Fix #796 by limiting the requirement for une extended partition to MBR disks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondo-prep.c

    r3569 r3570  
    12871287int i;
    12881288FILE *pout_to_fdisk = NULL;
     1289char *part_table_fmt = NULL;
    12891290
    12901291#ifdef __FreeBSD__
     
    14371438
    14381439#ifndef __IA64__
    1439     /* TODO: In GPT and NOT in IA64 this is failse ! */
    1440     if (current_devno == 5 && previous_devno == 4) {
    1441         log_to_screen("You must leave at least one partition spare as the Extended partition.");
    1442         paranoid_free(device_str);
    1443         mr_free(format);
    1444         return (1);
    1445     }
     1440    part_table_fmt = which_partition_format(drivename);
     1441
     1442    /* MBR needs an extended partition if more than 4 partitions */
     1443    if (strcmp(part_table_fmt, "MBR") == 0) {
     1444        if (current_devno == 5 && previous_devno == 4) {
     1445            log_to_screen("You must leave at least one partition spare as the Extended partition.");
     1446            paranoid_free(device_str);
     1447            mr_free(format);
     1448            return (1);
     1449        }
     1450    }
     1451    mr_free(part_table_fmt);
    14461452#endif
    14471453
Note: See TracChangeset for help on using the changeset viewer.