~ubuntu-branches/ubuntu/utopic/grub2/utopic

« back to all changes in this revision

Viewing changes to util/grub-install.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson, Colin Watson, Jon Severinsson
  • Date: 2014-03-31 16:30:37 UTC
  • mfrom: (17.3.93 sid)
  • Revision ID: package-import@ubuntu.com-20140331163037-b7h7nc1lf6st1z87
Tags: 2.02~beta2-8
[ Colin Watson ]
* Backport from upstream:
  - ieee1275: check for IBM pseries emulated machine.
  - Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig
    (closes: #735935).
  - btrfs: fix get_root key comparison failures due to endianness.
* Build-depend on automake (>= 1.10.1) to ensure that it meets configure's
  requirements (LP: #1299041).
* When installing an image for use with UEFI Secure Boot, generate a
  load.cfg even if there are no device abstractions in use (LP: #1298399).

[ Jon Severinsson ]
* Add Tanglu support, as in Debian except:
  - Enable splash screen by default (as Ubuntu)
  - Enable quiet and quick boot (as Ubuntu)
  - Enable the grub-common init script (as Ubuntu)
  - Enable dynamic gfxpayload (as Ubuntu)
  - Enable vt handover (as Ubuntu)
  - Use monochromatic theme by default (as Ubuntu)
  - Use Tanglu GRUB wallpaper by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
402
402
}
403
403
 
404
404
static void
405
 
push_partmap_module (const char *map)
 
405
push_partmap_module (const char *map, void *data __attribute__ ((unused)))
406
406
{
407
407
  char buf[50];
408
408
 
417
417
}
418
418
 
419
419
static void
 
420
push_cryptodisk_module (const char *mod, void *data __attribute__ ((unused)))
 
421
{
 
422
  grub_install_push_module (mod);
 
423
}
 
424
 
 
425
static void
420
426
probe_mods (grub_disk_t disk)
421
427
{
422
428
  grub_partition_t part;
427
433
    grub_util_info ("no partition map found for %s", disk->name);
428
434
 
429
435
  for (part = disk->partition; part; part = part->parent)
430
 
    push_partmap_module (part->partmap->name);
 
436
    push_partmap_module (part->partmap->name, NULL);
431
437
 
432
438
  if (disk->dev->id == GRUB_DISK_DEVICE_DISKFILTER_ID)
433
439
    {
434
 
      grub_diskfilter_get_partmap (disk, push_partmap_module);
 
440
      grub_diskfilter_get_partmap (disk, push_partmap_module, NULL);
435
441
      have_abstractions = 1;
436
442
    }
437
443
 
447
453
  if (disk->dev->id == GRUB_DISK_DEVICE_CRYPTODISK_ID)
448
454
    {
449
455
      grub_util_cryptodisk_get_abstraction (disk,
450
 
                                            grub_install_push_module);
 
456
                                            push_cryptodisk_module, NULL);
451
457
      have_abstractions = 1;
452
458
      have_cryptodisk = 1;
453
459
    }
1378
1384
  if (!efi_signed || !grub_util_is_regular (efi_signed))
1379
1385
    uefi_secure_boot = 0;
1380
1386
 
1381
 
  if (!have_abstractions)
 
1387
  if (!have_abstractions || uefi_secure_boot)
1382
1388
    {
1383
1389
      if ((disk_module && grub_strcmp (disk_module, "biosdisk") != 0)
1384
1390
          || grub_drives[1]