2023-03-07 11:11:20 +00:00
|
|
|
# grub-file
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Check if a file is of a bootable image type.
|
2023-03-07 11:11:20 +00:00
|
|
|
> More information: <https://manned.org/grub-file>.
|
|
|
|
|
|
|
|
- Check if a file is an ARM EFI image:
|
|
|
|
|
|
|
|
`grub-file --is-arm-efi {{path/to/file}}`
|
|
|
|
|
|
|
|
- Check if a file is an i386 EFI image:
|
|
|
|
|
|
|
|
`grub-file --is-i386-efi {{path/to/file}}`
|
|
|
|
|
|
|
|
- Check if a file is an x86_64 EFI image:
|
|
|
|
|
|
|
|
`grub-file --is-x86_64-efi {{path/to/file}}`
|
|
|
|
|
|
|
|
- Check if a file is an ARM image (Linux kernel):
|
|
|
|
|
|
|
|
`grub-file --is-arm-linux {{path/to/file}}`
|
|
|
|
|
|
|
|
- Check if a file is an x86 image (Linux kernel):
|
|
|
|
|
|
|
|
`grub-file --is-x86-linux {{path/to/file}}`
|
|
|
|
|
2024-02-01 20:04:38 +00:00
|
|
|
- Check if a file is an x86_64 XNU image (macOS kernel):
|
2023-03-07 11:11:20 +00:00
|
|
|
|
|
|
|
`grub-file --is-x86_64-xnu {{path/to/file}}`
|