]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
installer: Fix typo which caused to always use GPT.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Jul 2014 22:26:46 +0000 (00:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 Jul 2014 22:26:46 +0000 (00:26 +0200)
src/install+setup/install/hw.c

index 3e74e872c6800140d91f20b3784f8da0796475a9..148523137fe3440c38193465cbe0b738e85ccdc1 100644 (file)
@@ -379,7 +379,7 @@ static int hw_calculate_partition_table(struct hw_destination* dest) {
 
        // When using GPT, GRUB2 needs a little bit of space to put
        // itself in.
-       if (dest->part_table = HW_PART_TABLE_GPT) {
+       if (dest->part_table == HW_PART_TABLE_GPT) {
                snprintf(dest->part_bootldr, sizeof(dest->part_bootldr),
                        "%s%d", path, part_idx);