Utilities: Check boot-path that is rather mandatory, thx @cattyhouse

This commit is contained in:
PMheart 2019-07-17 13:42:40 +08:00
parent 7ee72354b3
commit eb83b4a4ea

View File

@ -25,7 +25,7 @@ abort() {
nvram=/usr/sbin/nvram
# FIXME: find an nvram key that is mandatory
if [ -z "$("${nvram}" -x 'efi-boot-device' | /usr/bin/grep 'xml')" ]; then
if [ -z "$("${nvram}" -x '4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path' | /usr/bin/grep 'xml')" ]; then
nvram="$(pwd)/nvram.mojave"
if [ ! -f "${nvram}" ]; then
abort "${nvram} does NOT exist!"