if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="Debian GNU/Linux, with Xen hypervisor" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_gpt insmod ext2 set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 0e276b18-54a4-4ff9-a770-1bcdd946ea70 else search --no-floppy --fs-uuid --set=root 0e276b18-54a4-4ff9-a770-1bcdd946ea70 fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_CA insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 else set timeout=5 fi fi set menu_color_normal=cyan/blue set menu_color_highlight=white/blue function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Linux 6.1.0-10-amd64 ...' linux /vmlinuz-6.1.0-10-amd64 root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-6.1.0-10-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-10-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Linux 6.1.0-10-amd64 ...' linux /vmlinuz-6.1.0-10-amd64 root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-10-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Linux 6.1.0-10-amd64 ...' linux /vmlinuz-6.1.0-10-amd64 root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Linux 6.1.0-9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-9-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Linux 6.1.0-9-amd64 ...' linux /vmlinuz-6.1.0-9-amd64 root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' initrd /initrd.img-6.1.0-9-amd64 } menuentry 'Debian GNU/Linux, with Linux 6.1.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-9-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Linux 6.1.0-9-amd64 ...' linux /vmlinuz-6.1.0-9-amd64 root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-6.1.0-9-amd64 } } menuentry 'Debian GNU/Linux, with Xen hypervisor' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64 ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.gz placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-10-amd64 ...' module2 /vmlinuz-6.1.0-10-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-10-amd64 } submenu 'Advanced options for Debian GNU/Linux (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { submenu 'Xen hypervisor, version 4.17-amd64' $menuentry_id_option 'xen-hypervisor-4.17-amd64-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { menuentry 'Debian GNU/Linux, with Xen 4.17-amd64 and Linux 6.1.0-10-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-10-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64 ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.gz placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-10-amd64 ...' module2 /vmlinuz-6.1.0-10-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64 and Linux 6.1.0-10-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-10-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64 ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.gz placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-10-amd64 ...' module2 /vmlinuz-6.1.0-10-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64 and Linux 6.1.0-9-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-9-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64 ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.gz placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-9-amd64 ...' module2 /vmlinuz-6.1.0-9-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-9-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64 and Linux 6.1.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-9-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64 ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.gz placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-9-amd64 ...' module2 /vmlinuz-6.1.0-9-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-9-amd64 } } submenu 'Xen hypervisor, version 4.17-amd64.efi' $menuentry_id_option 'xen-hypervisor-4.17-amd64.efi-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { menuentry 'Debian GNU/Linux, with Xen 4.17-amd64.efi and Linux 6.1.0-10-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-10-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64.efi ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.efi placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-10-amd64 ...' module2 /vmlinuz-6.1.0-10-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64.efi and Linux 6.1.0-10-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-10-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64.efi ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.efi placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-10-amd64 ...' module2 /vmlinuz-6.1.0-10-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-10-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64.efi and Linux 6.1.0-9-amd64' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-9-amd64-advanced-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64.efi ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.efi placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-9-amd64 ...' module2 /vmlinuz-6.1.0-9-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro quiet echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-9-amd64 } menuentry 'Debian GNU/Linux, with Xen 4.17-amd64.efi and Linux 6.1.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-6.1.0-9-amd64-recovery-0e276b18-54a4-4ff9-a770-1bcdd946ea70' { insmod part_gpt insmod ext2 set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1dd68754-c4eb-4011-98d4-6df73f99eb81 else search --no-floppy --fs-uuid --set=root 1dd68754-c4eb-4011-98d4-6df73f99eb81 fi echo 'Loading Xen 4.17-amd64.efi ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts= else xen_rm_opts="no-real-mode edd=off" fi multiboot2 /xen-4.17-amd64.efi placeholder ${xen_rm_opts} echo 'Loading Linux 6.1.0-9-amd64 ...' module2 /vmlinuz-6.1.0-9-amd64 placeholder root=UUID=0e276b18-54a4-4ff9-a770-1bcdd946ea70 ro single echo 'Loading initial ramdisk ...' module2 --nounzip /initrd.img-6.1.0-9-amd64 } } } menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' { fwsetup } if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg fi