Isso é um lote de linhas em que grub.cfg
, eu uso uma básica real para minhas USBs de inicialização múltipla, praticamente um set timeout
& amp; set default
& amp; alguns menuentry's ...
Eu tentei cortar todas as coisas relacionadas a gráficos, e funções também, e fiquei com o que poderia funcionar como um grub.cfg
sem frescuras para experimentar (manter o original como um backup, embora seja colado a esse site do github Eu faria um mv
no original de qualquer maneira):
set timeout=-1 if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash initrd /boot/initrd.img-3.16.0-29-generic } submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { menuentry 'Ubuntu, with Linux 3.16.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi echo 'Loading Linux 3.16.0-29-generic ...' linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-29-generic } menuentry 'Ubuntu, with Linux 3.16.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-29-generic-recovery-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi echo 'Loading Linux 3.16.0-29-generic ...' linux /boot/vmlinuz-3.16.0-29-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-29-generic } menuentry 'Ubuntu, with Linux 3.16.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-advanced-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi echo 'Loading Linux 3.16.0-23-generic ...' linux /boot/vmlinuz-3.16.0-23-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro quiet splash echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-23-generic } menuentry 'Ubuntu, with Linux 3.16.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-23-generic-recovery-5165d33f-4b1c-41e9-9ca9-e1c831348abc' { insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi echo 'Loading Linux 3.16.0-23-generic ...' linux /boot/vmlinuz-3.16.0-23-generic root=UUID=5165d33f-4b1c-41e9-9ca9-e1c831348abc ro recovery nomodeset echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.16.0-23-generic } } ### END /etc/grub.d/10_linux ### ### 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_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi knetbsd /boot/memtest86+.elf } menuentry 'Memory test (memtest86+, serial console 115200)' { insmod part_msdos insmod ext2 set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5165d33f-4b1c-41e9-9ca9-e1c831348abc else search --no-floppy --fs-uuid --set=root 5165d33f-4b1c-41e9-9ca9-e1c831348abc fi linux16 /boot/memtest86+.bin console=ttyS0,115200n8 }
Isso pode fazer com que, pelo menos, o GRUB exiba algo ...