Guest User

Grub2 config for live systemrescue boot

a guest
Mar 8th, 2021
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Global options (from sysrcd)
  2. set timeout=90
  3. set default=0
  4. set fallback=1
  5. set pager=1
  6.  
  7. have_grubenv=true
  8. load_env
  9. insmod part_msdos
  10. insmod fat
  11.  
  12. ## Display settings (from sysrcd)
  13. if loadfont /boot/grub/font.pf2 ; then
  14.     set gfxmode=640x480
  15.     set color_normal=black/cyan
  16.     set color_highlight=black/light-gray
  17.     set menu_color_normal=black/cyan
  18.     set menu_color_highlight=black/light-gray
  19.     insmod efi_gop
  20.     insmod efi_uga
  21.     insmod gfxterm
  22.     insmod all_video
  23.     insmod videotest
  24.     insmod videoinfo
  25.     terminal_output gfxterm
  26. fi
  27.  
  28. terminal_output gfxterm
  29.  
  30. insmod gfxmenu
  31. loadfont /boot/grub/themes/breeze/unifont-bold-16.pf2
  32. loadfont /boot/grub/themes/breeze/unifont-regular-14.pf2
  33. loadfont /boot/grub/themes/breeze/unifont-regular-16.pf2
  34. loadfont /boot/grub/themes/breeze/unifont-regular-32.pf2
  35. insmod png
  36. set theme=/boot/grub/themes/breeze/theme.txt
  37. export theme
  38.  
  39. set menu_color_normal=white/black
  40. set menu_color_highlight=black/light-gray
  41. ## END from neon.grub.cfg }
  42.  
  43. submenu "System Rescue"{
  44.     set usbstickdevice='/dev/disk/by-uuid/242A-5DE2'
  45.    
  46.     ## Doesn't work
  47.     menuentry "SytemRescue 8.0 (64 bit, default boot options)" {
  48.         set isofile="/boot/iso/systemrescue-8.00-amd64.iso"
  49.         set usbstickdevice='/dev/disk/by-uuid/242A-5DE2'
  50.         set gfxpayload=keep
  51.         loopback loop $isofile
  52.         echo "Loading kernel..."
  53.         linux   (loop)/sysresccd/boot/x86_64/vmlinuz img_dev=$usbstickdevice img_loop=$isofile earlymodules=loop archisobasedir=sysresccd archisolabel=RESCUE800
  54.         echo "Loading initramfs..."
  55.         initrd (loop)/sysresccd/boot/intel_ucode.img (loop)/sysresccd/boot/amd_ucode.img (loop)/sysresccd/boot/x86_64/sysresccd.img
  56.     }
  57.        
  58.     menuentry "SytemRescue 6.0.3 (64 bit, default boot options)" {
  59.         ## setting variables outside of menuentry doesn't work for some reason
  60.         set isofile="/boot/iso/systemrescuecd-6.0.3.iso"
  61.         set gfxpayload=keep
  62.         loopback loop $isofile
  63.         echo "Loading kernel..."
  64.         linux   (loop)/sysresccd/boot/x86_64/vmlinuz img_dev=$usbstickdevice img_loop=$isofile archisobasedir=sysresccd archisolabel=SYSRCD603
  65.         echo "Loading initramfs..."
  66.         initrd  (loop)/sysresccd/boot/x86_64/sysresccd.img
  67.     }
  68.    
  69.     menuentry 'Memtest' {
  70.         set isofile="/boot/iso/systemrescue-8.00-amd64.iso"
  71.         loopback loop $isofile
  72.         linux16 (loop)/sysresccd/boot/memtest
  73.     }
  74. }
  75.  
RAW Paste Data