|
|
|
@ -773,7 +773,9 @@ if ! [[ $outfile ]]; then
@@ -773,7 +773,9 @@ if ! [[ $outfile ]]; then
|
|
|
|
|
mkdir -p "$efidir/Linux" |
|
|
|
|
outfile="$efidir/Linux/linux-$kernel${MACHINE_ID:+-${MACHINE_ID}}${BUILD_ID:+-${BUILD_ID}}.efi" |
|
|
|
|
else |
|
|
|
|
if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then |
|
|
|
|
if [[ -e "/boot/vmlinuz-$kernel" ]]; then |
|
|
|
|
outfile="/boot/initramfs-$kernel.img" |
|
|
|
|
elif [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then |
|
|
|
|
outfile="/boot/${MACHINE_ID}/$kernel/initrd" |
|
|
|
|
else |
|
|
|
|
outfile="/boot/initramfs-$kernel.img" |
|
|
|
|