Project

General

Profile

Bug #9988

Make loader.efi dual boot, step 1

Added by Toomas Soome 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-11-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Update from FreeBSD. This does enable loader.efi to be used directly, without boot1.efi.

https://reviews.freebsd.org/D13784

Minor refactoring of currdev assignment. Remove redunant device device type.

Start to simplify the searching of block devices. Move the loops into efipart.c. Add back pointers for the devsw in pdinfo_t and introduce a pd_parent so we can represent partitions more easily. This is simply a refactor, no new functionality.

Add a quick sanity chceck to the zfs and disk partition code. We require loader.conf to exist on the partition we're considering. If the currdev from the image descriptor isn't sane, and it has a disk parent (and is therefore a slice), try all the sibling slices to see if one of them is same. Add some comments to flesh out what we're doing and call out some missing pieces of the puzzle.

Sponsored by: Netflix


Related issues

Related to illumos gate - Feature #9989: Make loader.efi dual boot, step 2: remove boot1Closed2018-11-18

Actions

History

#1

Updated by Electric Monk 8 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit e3026534c008abc0cbdcccf8cff6ac302fac6b52

commit  e3026534c008abc0cbdcccf8cff6ac302fac6b52
Author: Toomas Soome <tsoome@me.com>
Date:   2018-12-05T00:32:46.000Z

    9988 Make loader.efi dual boot, step 1
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: John Levon <john.levon@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

#2

Updated by Joshua Clulow 7 months ago

  • Related to Feature #9989: Make loader.efi dual boot, step 2: remove boot1 added

Also available in: Atom PDF