# # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${initrdfail}" = 2 ]; then set initrdfail= elif [ "${initrdfail}" = 1 ]; then set next_entry="${prev_entry}" set prev_entry= save_env prev_entry if [ "${next_entry}" ]; then set initrdfail=2 fi fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" 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 initrdfail { if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then if [ -z "${initrdfail}" ]; then set initrdfail=1 if [ -n "${boot_once}" ]; then set prev_entry="${default}" save_env prev_entry fi fi save_env initrdfail fi; fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 fat 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 4653-C7BF else search --no-floppy --fs-uuid --set=root 4653-C7BF fi font="/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_US insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=hidden set timeout=0 # Fallback hidden-timeout code in case the timeout_style feature is # unavailable. elif sleep --interruptible 0 ; then set timeout=0 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_linux_zfs ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; then set vt_handoff=vt.handoff=1 else set vt_handoff= fi } if [ "${recordfail}" != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode function zsyshistorymenu { # $1: root dataset (eg rpool/ROOT/ubuntu_2zhm07@autozsys_k56fr6) # $2: boot device id (eg 411f29ce1557bfed) # $3: initrd (eg /BOOT/ubuntu_2zhm07@autozsys_k56fr6/initrd.img-5.4.0-21-generic) # $4: kernel (eg /BOOT/ubuntu_2zhm07@autozsys_k56fr6/vmlinuz-5.4.0-21-generic) # $5: kernel_version (eg 5.4.0-21-generic) set root_dataset="${1}" set boot_device="${2}" set initrd="${3}" set kernel="${4}" set kversion="${5}" menuentry 'Revert system only' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' { recordfail load_video gfxmode ${linux_gfx_mode} insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi if [ ${boot_device} = /dev/sda4 ]; then insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi fi linux "${kernel}" root=ZFS="${root_dataset}" ro quiet splash ${vt_handoff} initrd "${initrd}" } menuentry 'Revert system and user data' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' { recordfail load_video gfxmode ${linux_gfx_mode} insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi if [ ${boot_device} = /dev/sda4 ]; then insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi fi linux "${kernel}" root=ZFS="${root_dataset}" ro quiet splash ${vt_handoff} zsys-revert=userdata initrd "${initrd}" } menuentry 'Revert system only (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' { recordfail load_video insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi if [ ${boot_device} = /dev/sda4 ]; then insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi fi echo Loading Linux ${kversion} ... linux "${kernel}" root=ZFS="${root_dataset}" ro recovery nomodeset dis_ucode_ldr echo 'Loading initial ramdisk ...' initrd "${initrd}" } menuentry 'Revert system and user data (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-${root_dataset}-${kversion}' { recordfail load_video insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi if [ ${boot_device} = /dev/sda4 ]; then insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi fi echo Loading Linux ${kversion} ... linux "${kernel}" root=ZFS="${root_dataset}" ro recovery nomodeset dis_ucode_ldr zsys-revert=userdata echo 'Loading initial ramdisk ...' initrd "${initrd}" } } menuentry 'Ubuntu 21.10' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_zgtuq6-5.13.0-19-generic' { recordfail load_video gfxmode ${linux_gfx_mode} insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi linux "/BOOT/ubuntu_zgtuq6@/vmlinuz-5.13.0-19-generic" root=ZFS="rpool/ROOT/ubuntu_zgtuq6" ro quiet splash ${vt_handoff} initrd "/BOOT/ubuntu_zgtuq6@/initrd.img-5.13.0-19-generic" } submenu 'Advanced options for Ubuntu 21.10' ${menuentry_id_option} 'gnulinux-advanced-rpool/ROOT/ubuntu_zgtuq6' { menuentry '* Ubuntu 21.10, with Linux 5.13.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_zgtuq6-5.13.0-19-generic' { recordfail load_video gfxmode ${linux_gfx_mode} insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi echo Loading Linux 5.13.0-19-generic ... linux "/BOOT/ubuntu_zgtuq6@/vmlinuz-5.13.0-19-generic" root=ZFS="rpool/ROOT/ubuntu_zgtuq6" ro quiet splash ${vt_handoff} echo 'Loading initial ramdisk ...' initrd "/BOOT/ubuntu_zgtuq6@/initrd.img-5.13.0-19-generic" } menuentry '* Ubuntu 21.10, with Linux 5.13.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os ${menuentry_id_option} 'gnulinux-rpool/ROOT/ubuntu_zgtuq6-5.13.0-19-generic' { recordfail load_video insmod gzio if [ "${grub_platform}" = xen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi echo Loading Linux 5.13.0-19-generic ... linux "/BOOT/ubuntu_zgtuq6@/vmlinuz-5.13.0-19-generic" root=ZFS="rpool/ROOT/ubuntu_zgtuq6" ro recovery nomodeset dis_ucode_ldr echo 'Loading initial ramdisk ...' initrd "/BOOT/ubuntu_zgtuq6@/initrd.img-5.13.0-19-generic" } } submenu 'History for Ubuntu 21.10' ${menuentry_id_option} 'gnulinux-history-rpool/ROOT/ubuntu_zgtuq6' { submenu 'Revert to 211012-linux13-19 on 12/10/21 @ 19:04' ${menuentry_id_option} 'gnulinux-history-rpool/ROOT/ubuntu_zgtuq6@211012-linux13-19' { zsyshistorymenu "rpool/ROOT/ubuntu_zgtuq6@211012-linux13-19" "/dev/sda4" "/BOOT/ubuntu_zgtuq6@211012-linux13-19/initrd.img-5.13.0-19-generic" "/BOOT/ubuntu_zgtuq6@211012-linux13-19/vmlinuz-5.13.0-19-generic" "5.13.0-19-generic" } } ### END /etc/grub.d/10_linux_zfs ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry 'Memory test (memtest86+)' { insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi knetbsd /BOOT/ubuntu_zgtuq6@/memtest86+.elf } menuentry 'Memory test (memtest86+, serial console 115200)' { insmod part_gpt insmod zfs set root='hd0,gpt4' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 b1428bc4c8335e84 else search --no-floppy --fs-uuid --set=root b1428bc4c8335e84 fi linux16 /BOOT/ubuntu_zgtuq6@/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### 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 ### END /etc/grub.d/41_custom ###