set default=0 loadfont $prefix/dejavu-bold-16.pf2 loadfont $prefix/dejavu-bold-14.pf2 loadfont $prefix/unicode.pf2 set gfxmode=auto insmod all_video insmod gfxterm insmod png insmod play terminal_output gfxterm play 960 440 1 0 4 440 1 set theme=/boot/grub/live-theme/theme.txt export theme if [ -n "${iso_path}" ]; then isoboot="findiso=${iso_path}" export isoboot fi # Live boot menuentry "Live" --class iso { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount noeject $isoboot initrd /live/initrd.img } submenu 'Advanced' --class settings { source /boot/grub/theme.cfg menuentry "RAM mode" --class ram { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount toram noeject $isoboot initrd /live/initrd.img } menuentry "Disable Nvidia GPU" --class nvidia { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount nouveau.modeset=0 nvidia.modeset=0 $isoboot initrd /live/initrd.img } menuentry "Persistence (needs previous configuration)" --class hdd { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount persistence $isoboot initrd /live/initrd.img } menuentry "Encrypted persistence (needs previous configuration)" --class hdd { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount persistent=cryptsetup persistence-encryption=luks persistence $isoboot initrd /live/initrd.img } menuentry "Failsafe (GPU nomodeset)" --class display { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount nomodeset $isoboot initrd /live/initrd.img } menuentry "Failsafe (HW compatibility issues)" --class display { set gfxpayload=keep linux /live/vmlinuz boot=live hostname=parrot quiet splash components noautomount config memtest noapic noapm nodma nomce nolapic nomodeset noquiet splash components vga=normal $isoboot initrd /live/initrd.img } } submenu 'Installer' --class install { source /boot/grub/theme.cfg menuentry "Installer" --class install { set gfxpayload=keep linux /install/vmlinuz vga=normal quiet initrd /install/initrd.gz } menuentry "GTK Installer" --class install { set gfxpayload=keep linux /install/gtk/vmlinuz video=vesa:ywrap,mtrr vga=768 quiet initrd /install/gtk/initrd.gz } menuentry "memtest86" --class memtest { linux16 /live/memtest } } menuentry "Power Off" --class poweroff { halt }