[packages/efi-boot-update] Fix boot order setup when efibootmgr is unavail

jajcus jajcus at pld-linux.org
Tue Oct 30 21:03:20 CET 2012


commit da8a0db5ebae65db60b39a6e70f92dbf64c4d32d
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Tue Oct 30 21:01:19 2012 +0100

    Fix boot order setup when efibootmgr is unavail

 efi-boot-update | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/efi-boot-update b/efi-boot-update
index 3569221..fb4a10b 100755
--- a/efi-boot-update
+++ b/efi-boot-update
@@ -261,9 +261,9 @@ for bootloader_conf in /etc/efi-boot/update.d/*.conf ; do
     fi
 done
 
-if [ -n "$ORDER" ] ; then
+if [ -n "$ORDER" -a "$EFIBOOTMGR" != "/bin/true" ] ; then
     # set up the configured boot order, not removing any existing entries
-    tail="$(efibootmgr | awk '/^BootOrder:/ {gsub(/,/," ",$2); print $2}')"
+    tail="$($EFIBOOTMGR | awk '/^BootOrder:/ {gsub(/,/," ",$2); print $2}')"
     head=""
     for config_name in $ORDER ; do
         eval "bootnum=\$_${config_name}_bootnum"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/efi-boot-update.git/commitdiff/24e7240b2b9dbcee7607b5eaf2712cefb55e0e82



More information about the pld-cvs-commit mailing list