diff --git a/efi.sh b/efi.sh index 112aacc..61822e3 100755 --- a/efi.sh +++ b/efi.sh @@ -22,26 +22,14 @@ wget \ /boot/efi/EFI/ZBM/VMLINUZ.EFI \ https://get.zfsbootmenu.org/efi -rsync \ - -pogAXtlHrDx \ - --stats \ - --info=progress2 \ - /boot/efi/EFI/ZBM/VMLINUZ.EFI \ - /boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI - -rsync \ - -pogAXtlHrDx \ - --stats \ - --info=progress2 \ - /boot/efi/EFI/ZBM/VMLINUZ.EFI \ - /boot/efi/EFI/BOOT/BOOTX64.EFI - -rsync \ - -pogAXtlHrDx \ - --stats \ - --info=progress2 \ - /boot/efi/EFI/ZBM/VMLINUZ.EFI \ - /boot/efi/EFI/BOOT/shellx64.efi +for file in {ZBM/VMLINUZ-BACKUP,BOOT/{BOOTX64,shellx64}}; do + rsync \ + -pogAXtlHrDx \ + --stats \ + --info=progress2 \ + /boot/efi/EFI/ZBM/VMLINUZ.EFI \ + /boot/efi/EFI/${file}.EFI +done efibootmgr \ -c \