grub.cfg 1013 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. set default="0"
  2. set timeout=1
  3. set pager=1
  4. menuentry 'Trisquel GNU/Linux with linux-libre 3.14.4' {
  5. linux (ahci0,1)/boot/vmlinuz-3.14.4-gnuowen root=/dev/sda1 processor.max_cstate=2 drm.debug=0x06 console=tty0 console=ttyS0,115200n8
  6. initrd (ahci0,1)/boot/initrd.img-3.14.4-gnuowen
  7. }
  8. menuentry 'Parse ISOLINUX menu (USB)' {
  9. set root='usb0'
  10. syslinux_configfile -i (usb0)/isolinux/isolinux.cfg
  11. }
  12. menuentry 'Parse ISOLINUX menu (CD)' {
  13. set root='ata0'
  14. syslinux_configfile -i (ata0)/isolinux/isolinux.cfg
  15. }
  16. menuentry 'Scan for GRUB configurations on the internal HDD (Permits to load other OS or distributions)' {
  17. insmod regexp
  18. insmod ahci
  19. insmod part_msdos
  20. for x in (ahci0,*) ; do
  21. if [ -f "$x/grub/grub.cfg" ] ; then
  22. submenu "Load Config from $x" $x {
  23. root=$2
  24. source /grub/grub.cfg
  25. unset superusers
  26. }
  27. fi
  28. if [ -f "$x/boot/grub/grub.cfg" ] ; then
  29. submenu "Load Config from $x" $x {
  30. root=$2
  31. source /boot/grub/grub.cfg
  32. unset superusers
  33. }
  34. fi
  35. done
  36. }