]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement uefi_rootdev
authorimp <imp@FreeBSD.org>
Mon, 29 Apr 2019 05:02:50 +0000 (05:02 +0000)
committerimp <imp@FreeBSD.org>
Mon, 29 Apr 2019 05:02:50 +0000 (05:02 +0000)
commitcb6a52efe878fbb1e1f811d82b84671215500342
tree1420d9a3c0aa72582b8a794b56f7004fd2f6b1b2
parentfa653d511e85977e5d25ffc6bee518512512a4db
Implement uefi_rootdev

If uefi_rootdev is set in the environment, then treat it like a device
path. Convert the string to a device path and see if we can find a
device that matches. If so, use that device at our root dev no matter
what. If it's bad in any way, the boot will fail.

Reviewed by: bcran
Differential Revision: https://reviews.freebsd.org/D20016
stand/efi/loader/main.c