Updated installer to deal with efi file
Kyle Sheumaker [Tue, 5 Jun 2018 23:20:31 +0000 (18:20 -0500)]
etc/cloner3/installer.sh

index 26d83ef..559ad27 100755 (executable)
@@ -313,6 +313,26 @@ do
 
 done < /cloner/setup/bootloader
 
+if [ -e /cloner/setup/efi ]
+then
+
+       EFIBOOTMGR=/usr/sbin/efibootmgr
+       header "Setting up EFI"
+
+       EFIARGS=`cat /cloner/setup/efi`
+
+       msg -n "Running efibootmgr ${EFIARGS}"
+       server_log "Running efibootmgr ${EFIARGS}" "${_node}"
+       chroot /cloner/mnt ${EFIBOOTMGR} ${EFIARGS} >> /tmp/stdout.log 2>> /tmp/stderr.log
+       if [ "$?" = "0" ]
+       then
+               ok_msg
+       else
+               fail_msg
+               clone_fatal_error "Failed to run ${EFIBOOTMGR} ${EFIARGS}"
+       fi
+fi
+
 # if a post install script exists we execute it
 if [ -e /cloner/setup/post_install.sh ]
 then