]> git.pld-linux.org Git - packages/efi-boot-update.git/blobdiff - efi-boot-update
Fix boot order setup when efibootmgr is unavail
[packages/efi-boot-update.git] / efi-boot-update
index 356922133e339d1c17093ba710273bf571c83eb2..fb4a10bfe9138360441392ddaef115d93c42e320 100755 (executable)
@@ -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"
This page took 0.028536 seconds and 4 git commands to generate.