Advertisement
Guest User

Untitled

a guest
May 11th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. #!/bin/sh
  2. exec tail -n +3 $0
  3. # This file provides an easy way to add custom menu entries. Simply type the
  4. # menu entries you want to add after this comment. Be careful not to change
  5. # the 'exec tail' line above.
  6.  
  7. menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1811a19b-8c50-4fb0-83c8-6625e095a164' {
  8. load_video
  9. set gfxpayload=keep
  10. insmod gzio
  11. insmod part_gpt
  12. insmod ext2
  13. set root='hd0,gpt4'
  14. if [ x$feature_platform_search_hint = xy ]; then
  15. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 1811a19b-8c50-4fb0-83c8-6625e095a164
  16. else
  17. search --no-floppy --fs-uuid --set=root 1811a19b-8c50-4fb0-83c8-6625e095a164
  18. fi
  19. echo 'Loading Linux linux ...'
  20. linux /boot/vmlinuz-linux root=UUID=1811a19b-8c50-4fb0-83c8-6625e095a164 rw quiet
  21. echo 'Loading initial ramdisk ...'
  22. initrd /boot/intel-ucode.img /boot/initramfs-linux.img
  23. }
  24. submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-1811a19b-8c50-4fb0-83c8-6625e095a164' {
  25. menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-1811a19b-8c50-4fb0-83c8-6625e095a164' {
  26. load_video
  27. set gfxpayload=keep
  28. insmod gzio
  29. insmod part_gpt
  30. insmod ext2
  31. set root='hd0,gpt4'
  32. if [ x$feature_platform_search_hint = xy ]; then
  33. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt3 1811a19b-8c50-4fb0-83c8-6625e095a164
  34. else
  35. search --no-floppy --fs-uuid --set=root 1811a19b-8c50-4fb0-83c8-6625e095a164
  36. fi
  37. echo 'Loading Linux linux ...'
  38. linux /boot/vmlinuz-linux root=UUID=1811a19b-8c50-4fb0-83c8-6625e095a164 rw quiet
  39. echo 'Loading initial ramdisk ...'
  40. initrd /boot/intel-ucode.img /boot/initramfs-linux.img
  41. }
  42. menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-1811a19b-8c50-4fb0-83c8-6625e095a164' {
  43. load_video
  44. set gfxpayload=keep
  45. insmod gzio
  46. insmod part_gpt
  47. insmod ext2
  48. set root='hd0,gpt4'
  49. if [ x$feature_platform_search_hint = xy ]; then
  50. search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 1811a19b-8c50-4fb0-83c8-6625e095a164
  51. else
  52. search --no-floppy --fs-uuid --set=root 1811a19b-8c50-4fb0-83c8-6625e095a164
  53. fi
  54. echo 'Loading Linux linux ...'
  55. linux /boot/vmlinuz-linux root=UUID=1811a19b-8c50-4fb0-83c8-6625e095a164 rw quiet
  56. echo 'Loading initial ramdisk ...'
  57. initrd /boot/initramfs-linux-fallback.img
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement