~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to util/grub-setup.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-01-11 17:11:44 UTC
  • mfrom: (1.17.12 upstream)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 100.
  • Revision ID: james.westby@ubuntu.com-20110111171144-c4c3hc0jslqa1bxe
Tags: 1.99~20110111-1
* New Bazaar snapshot.
  - Don't check amount of low memory, as reportedly INT 12h can be broken
    and if low memory is too low we wouldn't have gotten into
    grub_machine_init anyway (closes: #588293, LP: #513528).
  - Submenu default support (LP: #691878).
  - Fix optimisation-dependent grub-mklayout crash (closes: #609584).
* branch_butter.patch: Don't free an uninitialised pointer if /proc is
  unmounted (LP: #697493).
* Add a po/LINGUAS file listing the translations we've synced from the TP
  (closes: #609671).

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#include <grub/emu/getroot.h>
50
50
#include "progname.h"
51
51
#include <grub/reed_solomon.h>
 
52
#include <grub/msdos_partition.h>
52
53
 
53
54
#define _GNU_SOURCE     1
54
55
#include <argp.h>
339
340
    {
340
341
      if (p->parent != container)
341
342
        return 0;
 
343
      /* NetBSD and OpenBSD subpartitions have metadata inside a partition,
 
344
         so they are safe to ignore.
 
345
       */
 
346
      if (grub_strcmp (p->partmap->name, "netbsd") == 0
 
347
          || grub_strcmp (p->partmap->name, "openbsd") == 0)
 
348
        return 0;
342
349
      if (dest_partmap == NULL)
343
350
        {
344
351
          dest_partmap = p->partmap;
352
359
 
353
360
    grub_partition_iterate (dest_dev->disk, identify_partmap);
354
361
 
 
362
    if (container && grub_strcmp (container->partmap->name, "msdos") == 0
 
363
        && dest_partmap
 
364
        && (container->msdostype == GRUB_PC_PARTITION_TYPE_NETBSD
 
365
            || container->msdostype == GRUB_PC_PARTITION_TYPE_OPENBSD))
 
366
      {
 
367
        grub_util_warn (_("Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.  This is not supported yet."));
 
368
        goto unable_to_embed;
 
369
      }
 
370
 
355
371
    fs = grub_fs_probe (dest_dev);
356
372
    if (!fs)
357
373
      grub_errno = GRUB_ERR_NONE;