Created script to download new versions of ZFSBootMenu

This commit is contained in:
2025-09-05 17:41:14 -04:00
parent e099e2dbe6
commit ccb1de507c

39
zbm-upgrade.sh Executable file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
set -euo pipefail
sudo curl \
--progress-bar \
--location \
--continue-at - \
--show-error \
--output /boot/efi/EFI/ZBM/VMLINUZ.EFI \
https://get.zfsbootmenu.org/efi
if [[ ! -e '/boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI' ]]; then
sudo curl \
--progress-bar \
--location \
--continue-at - \
--show-error \
--output /boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI \
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
fi
if [[ -d '/boot/efi/EFI/BOOT/' ]]; then
sudo curl \
--progress-bar \
--location \
--continue-at - \
--show-error \
--output /boot/efi/EFI/BOOT/BOOTX64.EFI \
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
sudo curl \
--progress-bar \
--location \
--continue-at - \
--show-error \
--output /boot/efi/EFI/BOOT/shellx64.efi \
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
fi