GRUB 2 (grub.cfg)
Sabayon, GRUB 2 para systemd e ATI
Categoria: Miscelânea
Software: GRUB 2
[ Hits: 7.622 ]
Por: Alberto Federman Neto.
Este é um arquivo de configuração de GRUB 2, para Sabayon Linux com inicialização systemd e placa de vídeo ATI.
Outros S.O.s reconhecidos são Calculate Linux, openSUSE e Windows 7.
O arquivo está sendo publicado para servir de base, exemplo, pois ele contém parâmetros de kernel necessários em Sabayon com systemd e placa de vídeo ATI com driver proprietário.
# Arquivo de GRUB2 (grub.cfg), Sabayon Linux e outras Distros. # modificado por: Albfneto <albfneto@fcfrp.usp.br>. # Versão 2.10 - 2014. # # Parâmetros e Cheat-Codes adequados para Systemd # e Placa de video ATI com driver proprietário. # # Se você tiver uma ATI, coloque "nomodeset" # na linha de Boot do kernel, e se seu Sabayon tem Systemd, # coloque também o parâmetro: # real_init=/usr/lib/systemd/systemd # ### BEGIN /etc/grub.d/00_fonts ### ### END /etc/grub.d/00_fonts ### ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="0" 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_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=1024x768 load_video # vga= is deprecated, grub2 handles this just fine # making grub2 res == linux fb res set gfxpayload=keep insmod gfxterm set locale_dir=$prefix/locale set lang=pt_BR insmod gettext fi terminal_output gfxterm insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi insmod png background_image -m stretch /boot/grub/default-splash.png if sleep --interruptible 0 ; then set timeout=20 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Sabayon GNU/Linux com Kernel x86_64-3.12-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-024579f5-42ad-4bd1-8f0f-23da56a4c896' { load_video insmod gzio insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi echo 'Modificado por Albfneto, 2014' sleep 4s echo 'Carregando Kernel Linux x86_64-3.12-sabayon ...' sleep 4s linux /boot/kernel-genkernel-x86_64-3.12.0-sabayon root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 ro real_init=/usr/lib/systemd/systemd splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=br-a nomodeset resume=swap:UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 real_resume=UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 echo 'Carregando inittramfs ...' initrd /boot/initramfs-genkernel-x86_64-3.12.0-sabayon #real_init=/sbin/init.d/sysvinit/init } submenu 'Opções Avançadas para Sabayon' $menuentry_id_option 'gnulinux-advanced-024579f5-42ad-4bd1-8f0f-23da56a4c896' { menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.12.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.12.0-sabayon-advanced-024579f5-42ad-4bd1-8f0f-23da56a4c896' { load_video insmod gzio insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi echo 'Carregando Linux x86_64-3.12.0-sabayon ...' linux /boot/kernel-genkernel-x86_64-3.12.0-sabayon root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 ro init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=br-a domdadm resume=swap:UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 real_resume=UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 docrypt echo 'Carregando initramfs...' initrd /boot/initramfs-genkernel-x86_64-3.12.0-sabayon } menuentry 'Sabayon GNU/Linux, com Kernel Linux x86_64-3.12.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.12.0-sabayon-recovery-024579f5-42ad-4bd1-8f0f-23da56a4c896' { load_video insmod gzio insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi echo 'Carregando Linux x86_64-3.12-sabayon ...' linux /boot/kernel-genkernel-x86_64-3.12.0-sabayon root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 ro single init_opts=single init=/linuxrc splash=verbose,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=br-a domdadm resume=swap:UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 real_resume=UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 docrypt echo 'Carregando inittramfs ...' initrd /boot/initramfs-genkernel-x86_64-3.12.0-sabayon } menuentry 'Sabayon GNU/Linux, com Kernel x86_64-3.11.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.11.0-sabayon-advanced-024579f5-42ad-4bd1-8f0f-23da56a4c896' { load_video insmod gzio insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi echo 'Carregando Kernel...' linux /boot/kernel-genkernel-x86_64-3.11.0-sabayon root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 ro init=/linuxrc splash=silent,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=br-a domdadm resume=swap:UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 real_resume=UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 docrypt echo 'Acrregando RAMDISK ...' initrd /boot/initramfs-genkernel-x86_64-3.11.0-sabayon } menuentry 'Sabayon GNU/Linux, com Linux x86_64-3.11.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.11.0-sabayon-recovery-024579f5-42ad-4bd1-8f0f-23da56a4c896' { load_video insmod gzio insmod part_msdos insmod reiserfs set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 024579f5-42ad-4bd1-8f0f-23da56a4c896 else search --no-floppy --fs-uuid --set=root 024579f5-42ad-4bd1-8f0f-23da56a4c896 fi echo 'Loading Linux x86_64-3.11.0-sabayon ...' linux /boot/kernel-genkernel-x86_64-3.11.0-sabayon root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 ro single init_opts=single init=/linuxrc splash=verbose,theme:sabayon video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 quiet dokeymap keymap=br-a domdadm resume=swap:UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 real_resume=UUID=42d28857-66f7-4dc4-9f5a-b0acc6d93d65 root=UUID=024579f5-42ad-4bd1-8f0f-23da56a4c896 docrypt echo 'Loading RAMDISK ...' initrd /boot/initramfs-genkernel-x86_64-3.11.0-sabayon } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 7 (carregar) (em /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-32A81DDEA81DA201' { insmod part_msdos insmod ntfs 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 32A81DDEA81DA201 else search --no-floppy --fs-uuid --set=root 32A81DDEA81DA201 fi chainloader +1 } menuentry 'Calculate Linux Desktop 13.6.1. XFCE' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-e174208d-ea1f-4a6d-a9bf-e559e07dac21' { insmod part_msdos insmod ext2 set root='hd0,msdos8' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e174208d-ea1f-4a6d-a9bf-e559e07dac21 else search --no-floppy --fs-uuid --set=root e174208d-ea1f-4a6d-a9bf-e559e07dac21 fi linux /boot/vmlinuz-3.10.4-x86_64-CLDX root=UUID=e174208d-ea1f-4a6d-a9bf-e559e07dac21 ro video=uvesafb:ywrap,1024x768-32,mtrr:3,splash=silent,theme:calculate elevator=cfq doscsi calculate=video:ati nomodeset console=tty1 udev quiet initrd /boot/initramfs-3.10.4-x86_64-CLDX } submenu 'Opçoes Avançadas de Calculate Linux Desktop 13.6.1 XFCE' $menuentry_id_option 'osprober-gnulinux-advanced-e174208d-ea1f-4a6d-a9bf-e559e07dac21' { menuentry 'Calculate Linux Desktop XFCE (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10.4-x86_64-CLDX--e174208d-ea1f-4a6d-a9bf-e559e07dac21' { insmod part_msdos insmod ext2 set root='hd0,msdos8' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e174208d-ea1f-4a6d-a9bf-e559e07dac21 else search --no-floppy --fs-uuid --set=root e174208d-ea1f-4a6d-a9bf-e559e07dac21 fi linux /boot/vmlinuz-3.10.4-x86_64-CLDX root=UUID=e174208d-ea1f-4a6d-a9bf-e559e07dac21 ro video=uvesafb:ywrap,1024x768-32,mtrr:3,splash=silent,theme:calculate elevator=cfq doscsi calculate=video:ati nomodeset console=tty1 udev quiet initrd /boot/initramfs-3.10.4-x86_64-CLDX } menuentry 'Calculate Linux Desktop XFCE, com Linux 3.10.4-x86_64-CLDX (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.10.4-x86_64-CLDX--e174208d-ea1f-4a6d-a9bf-e559e07dac21' { insmod part_msdos insmod ext2 set root='hd0,msdos8' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e174208d-ea1f-4a6d-a9bf-e559e07dac21 else search --no-floppy --fs-uuid --set=root e174208d-ea1f-4a6d-a9bf-e559e07dac21 fi linux /boot/vmlinuz-3.10.4-x86_64-CLDX root=UUID=e174208d-ea1f-4a6d-a9bf-e559e07dac21 ro video=uvesafb:ywrap,1024x768-32,mtrr:3,splash=silent,theme:calculate elevator=cfq doscsi calculate=video:ati console=tty1 udev quiet initrd /boot/initramfs-3.10.4-x86_64-CLDX } } menuentry 'OpenSUSE 13.2 Milestone 0 (x86_64)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ccb71d52-097d-4a94-8246-85b3a2bc4077' { insmod part_msdos insmod reiserfs set root='hd0,msdos9' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 ccb71d52-097d-4a94-8246-85b3a2bc4077 else search --no-floppy --fs-uuid --set=root ccb71d52-097d-4a94-8246-85b3a2bc4077 fi linux /boot/vmlinuz-3.14.0-2-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5W443821-part9 resume=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5W443821-part7 splash=silent quiet showopts initrd /boot/initrd-3.14.0-2-desktop } submenu 'Opçoes Avançadas para OpenSUSE 13.2 Milestone 0 (x86_64)' $menuentry_id_option 'osprober-gnulinux-advanced-ccb71d52-097d-4a94-8246-85b3a2bc4077' { menuentry 'Desktop -- openSUSE 13.2 Milestone 0 - 3.14.0-2 (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14.0-2-desktop--ccb71d52-097d-4a94-8246-85b3a2bc4077' { insmod part_msdos insmod reiserfs set root='hd0,msdos9' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 ccb71d52-097d-4a94-8246-85b3a2bc4077 else search --no-floppy --fs-uuid --set=root ccb71d52-097d-4a94-8246-85b3a2bc4077 fi linux /boot/vmlinuz-3.14.0-2-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5W443821-part9 resume=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5W443821-part7 splash=silent quiet showopts initrd /boot/initrd-3.14.0-2-desktop } menuentry 'Modo de Segurança, OpenSUSE 13.2 Milestone 0 - 3.14.0-2 (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14.0-2-desktop--ccb71d52-097d-4a94-8246-85b3a2bc4077' { insmod part_msdos insmod reiserfs set root='hd0,msdos9' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 ccb71d52-097d-4a94-8246-85b3a2bc4077 else search --no-floppy --fs-uuid --set=root ccb71d52-097d-4a94-8246-85b3a2bc4077 fi linux /boot/vmlinuz-3.14.0-2-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5W443821-part9 initrd /boot/initrd-3.14.0-2-desktop } } ### END /etc/grub.d/30_os-prober ### ### 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 ###
Nenhum comentário foi encontrado.
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Como renomear arquivos de letras maiúsculas para minúsculas
Imprimindo no formato livreto no Linux
Vim - incrementando números em substituição
Efeito "livro" em arquivos PDF
Como resolver o erro no CUPS: Unable to get list of printer drivers
É cada coisa que me aparece! - não é só 3% (1)
Alguma pessoa pode me ajudar com drriver Core i3 7020u (Debian 12)? (2)
Mikrotik não mostra bytes nem packtes (1)
Melhores Práticas de Nomenclatura: Pastas, Arquivos e Código [RESOLVID... (4)
[Python] Automação de scan de vulnerabilidades
[Python] Script para analise de superficie de ataque
[Shell Script] Novo script para redimensionar, rotacionar, converter e espelhar arquivos de imagem
[Shell Script] Iniciador de DOOM (DSDA-DOOM, Doom Retro ou Woof!)
[Shell Script] Script para adicionar bordas às imagens de uma pasta