Page MenuHomeFreeBSD

stand/efi: Allow RELAXED or STRICT boot policies
Needs ReviewPublic

Authored by imp on Wed, Feb 4, 5:46 PM.

Details

Reviewers
mav
glebius
manu
Summary

The RELAXED boot policy will automatically search for any root
filesystem (currently zfs only) on any device. STRICT policy only
searches on the boot device.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70415
Build 67298: arc lint + arc unit

Event Timeline

imp requested review of this revision.Wed, Feb 4, 5:46 PM

assume the boot dev are first on list.

lookup table for values.

Oh, I don't need the on_bootdev stuff. Simplify.

Oh, don't make silly changes, so we're down to main.c only now.

stand/efi/loader/main.c
151–154

This will make two declarations better coupled together.

611–615

Didn't you you want to skip entries that don't match the condition instead of breaking the cycle? What if next entry is actually the one we want?

stand/efi/loader/main.c
611–615

Now that I've seen your change to D55094, I see that there is no difference between breaking the cycle or skipping entries. So whatever works. But in case if you prefer breaking the cycle, I will suggest to put a comment explaining why we sure that no good entry is there in the list, referencing the other file.