blob: d0c606d3b30e1b023883bbd0712f7b77796e06d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env bash
#
# Copy kernel and initramfs images to EFI directory
# /usr/local/bin/kernel-efi-copy.sh
ESP_DIR="/efi"
for file in /boot/vmlinuz*
do
cp -af "$file" "$ESP_DIR/$(basename "$file")"
[[ $? -ne 0 ]] && exit 1
done
for file in /boot/initramfs*
do
cp -af "$file" "$ESP_DIR/"
[[ $? -ne 0 ]] && exit 1
done
[[ -e /boot/intel-ucode.img ]] && cp -af /boot/intel-ucode.img "$ESP_DIR/"
[[ -e /boot/amd-ucode.img ]] && cp -af /boot/amd-ucode.img "$ESP_DIR/"
exit 0
|