grub.cfg 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # -*- mode: conf-unix -*-
  2. # This is not my real grub.cfg. It's more a reference for myself how
  3. # different systems can be booted.
  4. insmod part_msdos
  5. insmod ext2
  6. ## Making graphical terminal
  7. ## (gfxmode - for grub; gfxpayload - for linux terminal):
  8. # loadfont unicode
  9. # set gfxmode=800x600
  10. # # set gfxpayload=keep
  11. # set gfxpayload=text
  12. # insmod all_video
  13. # insmod gfxterm
  14. terminal_input console
  15. terminal_output console
  16. # terminal_output gfxterm
  17. play 480 176 1
  18. play 480 165 1
  19. play 480 220 1
  20. set pager=1
  21. set default=guix
  22. set timeout=3
  23. set color_normal=white/black
  24. set menu_color_normal=green/black
  25. set menu_color_highlight=yellow/black
  26. function boot_guix {
  27. search --no-floppy --label --set guix
  28. linux ${guix_system}/kernel/bzImage --root=guix --system=${guix_system} --load=${guix_system}/boot modprobe.blacklist=pcspkr,snd_pcsp
  29. initrd ${guix_system}/initrd
  30. }
  31. ### Guix System Distribution
  32. menuentry 'GuixSD (current)' --id guix --class guix --class gnu-linux --class os {
  33. set guix_system=/var/guix/profiles/system
  34. boot_guix
  35. }
  36. menuentry 'GuixSD (stable)' --class guix --class gnu-linux --class os {
  37. set guix_system=/var/guix/profiles/system-28-link
  38. boot_guix
  39. }
  40. menuentry 'GuixSD (testing)' --class guix --class gnu-linux --class os {
  41. set guix_system=/gnu/store/wjdx8k1646az10m0cg6c04ydgr2234gs-system
  42. boot_guix
  43. }
  44. ### Arch Linux
  45. menuentry 'Arch Linux' --id arch --class arch --class gnu-linux --class os {
  46. search --no-floppy --label --set arch
  47. linux /boot/vmlinuz-linux root=LABEL=arch ro acpi_enforce_resources=lax
  48. initrd /boot/initramfs-linux.img
  49. }
  50. menuentry 'Arch Linux (fallback)' --id arch-fallback --class arch --class gnu-linux --class os {
  51. search --no-floppy --fs-uuid --set=root 9bb3e1b7-4b87-4e03-9861-a5b995714fc5
  52. linux /boot/vmlinuz-linux root=UUID=9bb3e1b7-4b87-4e03-9861-a5b995714fc5 rw
  53. initrd /boot/initramfs-linux-fallback.img
  54. }
  55. menuentry 'Arch Linux (linux-lts)' --id arch-lts --class arch --class gnu-linux --class os {
  56. search --no-floppy --label --set arch
  57. linux /boot/vmlinuz-linux-lts root=LABEL=arch ro acpi_enforce_resources=lax
  58. initrd /boot/initramfs-linux-lts.img
  59. }
  60. menuentry 'Arch Linux (linux-mainline)' --id arch-mainline --class arch --class gnu-linux --class os {
  61. search --no-floppy --label --set arch
  62. linux /boot/vmlinuz-linux-mainline root=LABEL=arch ro acpi_enforce_resources=lax
  63. initrd /boot/initramfs-linux-mainline.img
  64. }
  65. ### Misc
  66. menuentry 'MS Windows (ntldr)' --id windows --class windows --class os {
  67. insmod fat
  68. search --no-floppy --fs-uuid --set=root f011-d8a2
  69. drivemap -s (hd0) ${root}
  70. chainloader +1
  71. }
  72. menuentry 'GRUB2 on hd1' {
  73. set root='(hd1)'
  74. chainloader +1
  75. }
  76. menuentry 'Plop Boot Manager' {
  77. search --no-floppy --label --set boot
  78. # search --no-floppy --fs-uuid --set=root a75fb002-d340-432d-9e7f-36a53ba9c959
  79. linux16 /plpbt.bin
  80. }
  81. ### Images
  82. menuentry 'Archlinux 2016-03-01 x86_64 (iso)' --class iso {
  83. search --no-floppy --fs-uuid --set=root f8cdd183-1a60-4748-826c-8648206d03fb
  84. set isofile="/images/archlinux-2016.03.01-dual.iso"
  85. loopback loop $isofile
  86. linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201603 img_dev=/dev/sda7 img_loop=$isofile earlymodules=loop
  87. initrd (loop)/arch/boot/x86_64/archiso.img
  88. }
  89. menuentry 'Archlinux 2016-03-01 i686 (iso)' --class iso {
  90. search --no-floppy --fs-uuid --set=root f8cdd183-1a60-4748-826c-8648206d03fb
  91. set isofile="/images/archlinux-2016.03.01-dual.iso"
  92. loopback loop $isofile
  93. linux (loop)/arch/boot/i686/vmlinuz archisolabel=ARCH_201603 img_dev=/dev/sda7 img_loop=$isofile earlymodules=loop
  94. initrd (loop)/arch/boot/i686/archiso.img
  95. }
  96. menuentry 'Parted Magic 2012-03-24 (iso)' --class iso {
  97. search --no-floppy --fs-uuid --set=root f8cdd183-1a60-4748-826c-8648206d03fb
  98. loopback loop /images/pmagic_2012_3_24.iso
  99. linux (loop)/pmagic/bzImage boot=casper iso-scan/filename=/images/pmagic_2012_3_24.iso
  100. initrd (loop)/pmagic/initrd.img
  101. }
  102. menuentry 'Lubuntu 11.10 (iso)' --class iso {
  103. search --no-floppy --fs-uuid --set=root f8cdd183-1a60-4748-826c-8648206d03fb
  104. loopback loop /images/lubuntu-11.10-desktop-i386.iso
  105. linux (loop)/pmagic/bzImage boot=casper iso-scan/filename=/images/lubuntu-11.10-desktop-i386.iso
  106. linux (loop)/casper/vmlinuz file=(loop)/preseed/lubuntu.seed boot=casper iso-scan/filename=/images/lubuntu-11.10-desktop-i386.iso
  107. initrd (loop)/casper/initrd.lz
  108. }