EFIBOOTMGR=/bin/true
fi
-
for bootloader_conf in /etc/efi-boot/update.d/*.conf ; do
if [ ! -e "$bootloader_conf" ] ; then
continue
continue
fi
- DESTDIR="/boot/efi/EFI/$(echo -n "$PLATFORM_DIR"|sed -e's/@ARCH@/'"$ARCH"'/')"
+ local efi_arch
+ if [[ "$ARCH" = i?86 || "$ARCH" = pentium[45] || "$ARCH" = "athlon" ]] ; then
+ # %ix86
+ efi_arch=x32
+ elif [[ "$ARCH" = "x86_64" || "$ARCH" = "amd64" || "$ARCH" = "ia32e" ]] ; then
+ # %x8664
+ efi_arch=x64
+ else
+ efi_arch="$ARCH"
+ fi
+ DESTDIR="/boot/efi/EFI/$(echo -n "$PLATFORM_DIR"|sed -e's/@ARCH@/'"$efi_arch"'/')"
mkdir -p "$DESTDIR"
verbose "Updating $LABEL..."