4 ARGS="root=/dev/sda2 ro add_efi_memmap"
6 ARGS="initrd=@EFI_PLATFORM_PATH@\\initrd_old $ARGS"
8 if is_yes "$ENABLED" ; then
9 if [ -e /boot/vmlinuz.old ] ; then
10 _kernel_filetype="$(file -k -L /boot/vmlinuz.old)"
12 _kernel_filetype="$(file -k -L /boot/vmlinuz)"
15 if [ "${_kernel_filetype#*PE32 executable}" != "${_kernel_filetype}" ] ; then
16 # PE32 - 32 bit EFI stub
18 verbose "Kernel with 32 bit EFI stub found at /boot/vmlinuz.old"
19 elif [ "${_kernel_filetype#*PE32+ executable}" != "${_kernel_filetype}" ] ; then
20 # PE32+ - 64 bit EFI stub
22 verbose "Kernel with 64 bit EFI stub found at /boot/vmlinuz.old"
24 msg "/boot/vmlinuz.old does not contain EFI stub"
31 update_file --missingok /boot/initrd.old initrd_old
32 update_file --missingok /boot/vmlinuz.old vmlinuz_old.efi