# UEFI boot menu of the ISO (bootmode uefi.grub). GRUB reads the kernel and # initramfs straight from the ISO 9660 file system, so the EFI system # partition only carries GRUB itself instead of a second copy of both. # Entries mirror the BIOS menu (syslinux/archiso_sys-linux.cfg). # Load partition table and file system modules insmod part_gpt insmod part_msdos insmod fat insmod iso9660 insmod ntfs insmod ntfscomp insmod exfat insmod udf # Use graphics-mode output if loadfont "${prefix}/fonts/unicode.pf2" ; then insmod all_video set gfxmode="auto" terminal_input console terminal_output console fi # Enable serial console insmod serial insmod usbserial_common insmod usbserial_ftdi insmod usbserial_pl2303 insmod usbserial_usbdebug if serial --unit=0 --speed=115200; then terminal_input --append serial terminal_output --append serial fi # Get a human readable platform identifier if [ "${grub_platform}" == 'efi' ]; then archiso_platform='UEFI' elif [ "${grub_platform}" == 'pc' ]; then archiso_platform='BIOS' else archiso_platform="${grub_cpu}-${grub_platform}" fi # Get the lowercase UEFI machine type short-name to use for architecture-specific tools if [ "${grub_platform}" == 'efi' ]; then if [ "${grub_cpu}" == 'x86_64' ]; then uefi_machine_type_lower='x64' elif [ "${grub_cpu}" == 'i386' ]; then uefi_machine_type_lower='ia32' fi fi # Set default menu entry default=fws timeout=3 timeout_style=menu # Menu entries menuentry "FWS install medium (%ARCH%, ${archiso_platform})" --class fws --class gnu-linux --class gnu --class os --id 'fws' { set gfxpayload=keep linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% udev.event_timeout=45 initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img } # Safe graphics: no KMS, X falls back to the firmware framebuffer. menuentry "FWS install medium (%ARCH%, ${archiso_platform}, safe graphics)" --class fws --class gnu-linux --class gnu --class os --id 'fws-nomodeset' { set gfxpayload=keep linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% nomodeset udev.event_timeout=45 initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img } # Boots the live without the installer and starts fws-recovery (fws.recovery=1). menuentry "FWS - Reparer une installation (recovery)" --class fws --class gnu-linux --class gnu --class os --id 'fws-recovery' { set gfxpayload=keep linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% udev.event_timeout=45 fws.recovery=1 initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img } menuentry "FWS install medium (%ARCH%, ${archiso_platform}) with speech" --hotkey s --class fws --class gnu-linux --class gnu --class os --id 'fws-accessibility' { set gfxpayload=keep linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on udev.event_timeout=45 initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img } if [ "${grub_platform}" == 'efi' -a -f "/boot/memtest86+/memtest86${uefi_machine_type_lower}.efi" ]; then menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { set gfxpayload=800x600,1024x768 linux /boot/memtest86+/memtest86${uefi_machine_type_lower}.efi } fi if [ "${grub_platform}" == 'efi' ]; then if [ -f "/shell${uefi_machine_type_lower}.efi" ]; then menuentry 'UEFI Shell' --class efi { chainloader /shell${uefi_machine_type_lower}.efi } fi menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { fwsetup } fi menuentry 'System shutdown' --class shutdown --class poweroff { echo 'System shutting down...' halt } menuentry 'System restart' --class reboot --class restart { echo 'System rebooting...' reboot } # Audible cue that the menu is up, for users of the speech entry. play 600 988 1 1319 4