Permalink
Browse files

my_files: Move efistub kernels inside /EFI/arch/

  • Loading branch information...
KeshavA2016 committed Apr 18, 2012
1 parent b9539f5 commit 6fef5bd3422e890fabeef8a4df927c3082107b9d
Showing with 19 additions and 19 deletions.
  1. +19 −19 my_files.sh
View
@@ -258,12 +258,12 @@ _COPY_UEFI_BOOTLOADER_FILES() {
[[ -d "${_DEST_DIR}/" ]] && _SUDO_COPY_FILE
_SOURCE_FILE="refind_uefi_linux.conf"
- _DEST_DIR="${_UEFI_SYS_PART_DIR}/arch_linux_core/"
+ _DEST_DIR="${_UEFI_SYS_PART_DIR}/arch/arch_linux_core/"
_DEST_FILE="refind_linux.conf"
[[ -d "${_DEST_DIR}/" ]] && _SUDO_COPY_FILE
_SOURCE_FILE="refind_uefi_linux.conf"
- _DEST_DIR="${_UEFI_SYS_PART_DIR}/arch_linux_mainline/"
+ _DEST_DIR="${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline/"
_DEST_FILE="refind_linux.conf"
[[ -d "${_DEST_DIR}/" ]] && _SUDO_COPY_FILE
@@ -330,8 +330,8 @@ _COPY_EFISTUB_KERNELS_UEFISYS_PART() {
echo
- sudo rm -rf "${_UEFI_SYS_PART_DIR}/arch_linux_core"/ || true
- sudo install -d "${_UEFI_SYS_PART_DIR}/arch_linux_core"/ || true
+ sudo rm -rf "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/ || true
+ sudo install -d "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/ || true
echo
@@ -345,40 +345,40 @@ _COPY_EFISTUB_KERNELS_UEFISYS_PART() {
if [[ "$(file "/tmp/${_BASENAME}_check.bin" | grep 'PE32+ executable (EFI application) x86-64')" ]]; then
if [[ ! "$(grep '\.efi' "${_BASENAME}")" ]]; then
- sudo install -D -m0644 "/boot/${_BASENAME}" "${_UEFI_SYS_PART_DIR}/arch_linux_core/${_BASENAME}.efi" || true
+ sudo install -D -m0644 "/boot/${_BASENAME}" "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core/${_BASENAME}.efi" || true
echo
fi
else
- sudo install -D -m0644 "/boot/${_BASENAME}" "${_UEFI_SYS_PART_DIR}/arch_linux_core/${_BASENAME}" || true
+ sudo install -D -m0644 "/boot/${_BASENAME}" "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core/${_BASENAME}" || true
echo
fi
sudo rm -f "/tmp/${_BASENAME}_check.bin" || true
fi
done
- sudo install -D -m0644 "/boot"/init{ramfs,rd}*.img "${_UEFI_SYS_PART_DIR}/arch_linux_core"/ || true
+ sudo install -D -m0644 "/boot"/init{ramfs,rd}*.img "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/ || true
echo
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/vmlinuz-{linux,ARCH-core}.efi
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-{linux,ARCH-core}.img
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-{linux,ARCH-core}-fallback.img
- sudo rm -f "${_UEFI_SYS_PART_DIR}/arch_linux_core"/vmlinuz-linux.efi
- sudo rm -f "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-linux{,-fallback}.img
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/vmlinuz-{linux,ARCH-core}.efi
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-{linux,ARCH-core}.img
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-{linux,ARCH-core}-fallback.img
+ sudo rm -f "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/vmlinuz-linux.efi
+ sudo rm -f "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-linux{,-fallback}.img
echo
- sudo rm -rf "${_UEFI_SYS_PART_DIR}/arch_linux_mainline"/ || true
- sudo install -d "${_UEFI_SYS_PART_DIR}/arch_linux_mainline"/ || true
+ sudo rm -rf "${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline"/ || true
+ sudo install -d "${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline"/ || true
echo
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/vmlinuz-linux-mainline.efi "${_UEFI_SYS_PART_DIR}/arch_linux_mainline"/vmlinuz-arch-mainline.efi
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-linux-mainline.img "${_UEFI_SYS_PART_DIR}/arch_linux_mainline"/initramfs-arch-mainline.img
- sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-linux-mainline-fallback.img "${_UEFI_SYS_PART_DIR}/arch_linux_mainline"/initramfs-arch-mainline-fallback.img
- sudo rm -f "${_UEFI_SYS_PART_DIR}/arch_linux_core"/vmlinuz-linux-mainline.efi
- sudo rm -f "${_UEFI_SYS_PART_DIR}/arch_linux_core"/initramfs-linux-mainline{,-fallback}.img
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/vmlinuz-linux-mainline.efi "${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline"/vmlinuz-arch-mainline.efi
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-linux-mainline.img "${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline"/initramfs-arch-mainline.img
+ sudo install -D -m0644 "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-linux-mainline-fallback.img "${_UEFI_SYS_PART_DIR}/arch/arch_linux_mainline"/initramfs-arch-mainline-fallback.img
+ sudo rm -f "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/vmlinuz-linux-mainline.efi
+ sudo rm -f "${_UEFI_SYS_PART_DIR}/arch/arch_linux_core"/initramfs-linux-mainline{,-fallback}.img
echo

0 comments on commit 6fef5bd

Please sign in to comment.