]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix install-boot.sh and rootgen.sh UEFI bugs
authorbcran <bcran@FreeBSD.org>
Wed, 24 Apr 2019 22:35:29 +0000 (22:35 +0000)
committerbcran <bcran@FreeBSD.org>
Wed, 24 Apr 2019 22:35:29 +0000 (22:35 +0000)
commit75fcc582d3df051a7eac6b541ebd390545f59fa1
treef57db3d7dd0a21d9f0cadac2e322a98307aae03d
parent6dbde879b1f13d5397bbde3b8d6f75b898fd2bed
Fix install-boot.sh and rootgen.sh UEFI bugs

tools/boot/install-boot.sh was assuming that if a device was passed in,
it should operate on the current system and run efibootmgr etc. to
update the boot manager. However, rootgen.sh passes a md(4) device and
not a fixed disk.

Add a -u option to install-boot.sh to tell it to update the system
in-place and run efibootmgr etc.

Also, source install-boot.sh in rootgen.sh to allow it to find and
call make_esp_file etc. And pass the loader file to make_esp_file instead
of a directory name.

Reported by: ian
Reviewed by: ian,imp,tsoome
Differential Revision: https://reviews.freebsd.org/D19992
tools/boot/install-boot.sh
tools/boot/rootgen.sh