Skip to content

Commit 8d38307

Browse files
committed
Move shellx64.efi to tools dir rather than EFI root
1 parent 08eb396 commit 8d38307

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ZFS-root.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,10 @@ cat <<- END > /boot/efi/EFI/zfsbootmenu/refind_linux.conf
12761276
END
12771277
12781278
# Copy UEFI shell to EFI system
1279-
[ -e /usr/share/efi-shell-x64/shellx64.efi ] && cp /usr/share/efi-shell-x64/shellx64.efi /boot/efi/EFI
1279+
if [ -e /usr/share/efi-shell-x64/shellx64.efi ] ; then
1280+
mkdir -p /boot/efi/EFI/tools
1281+
cp /usr/share/efi-shell-x64/shellx64.efi /boot/efi/EFI/tools
1282+
fi
12801283
12811284
# If we're running under legacy bios then rEFInd will be installed
12821285
# to /boot/efi/EFI/BOOT - we want it in /boot/efi/EFI/refind
@@ -1386,7 +1389,7 @@ fi
13861389
# and run via generate-zbm.sh
13871390
if [ "${ZFSBOOTMENU_BINARY_TYPE}" != "LOCAL" ] ; then
13881391
curl -L https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/master/contrib/syslinux-update.sh -o /boot/efi/syslinux-update.sh
1389-
chmod +x /boot/efi/syslinux-update.sh
1392+
chmod +x /boot/efi/syslinux-update.sh
13901393
sed -i '
13911394
s/^SYSLINUX_ROOT.*/SYSLINUX_ROOT="\/boot\/efi"/
13921395
s/^KERNEL_PATH.*/KERNEL_PATH="EFI\/zfsbootmenu"/

0 commit comments

Comments
 (0)