]> git.pld-linux.org Git - packages/efi-boot-update.git/commitdiff
Fix boot order setup when efibootmgr is unavail
authorJacek Konieczny <jajcus@jajcus.net>
Tue, 30 Oct 2012 20:01:19 +0000 (21:01 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Tue, 30 Oct 2012 20:01:19 +0000 (21:01 +0100)
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.079088 seconds and 4 git commands to generate.