SHARE
TWEET

Untitled

a guest Nov 22nd, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. insmod gzio
  2. insmod iso9660
  3. insmod png
  4.  
  5. loadfont /boot/grub/unicode.pf2
  6.  
  7. set gfxmode=640x400
  8. # set kernel parameter vga=791
  9. # do not specify color depth here (else efifb can fall back to 800x600)
  10. set gfxpayload=1024x768
  11. #set gfxmode=auto
  12. #set gfxpayload=keep
  13.  
  14. insmod all_video
  15. insmod gfxterm
  16.  
  17. set theme=/boot/grub/pvetheme/theme.txt
  18.  
  19. terminal_output gfxterm
  20.  
  21. menuentry 'Install Proxmox VE' --class debian --class gnu-linux --class gnu --class os {
  22.     echo    'Loading Proxmox Installer ...'
  23.     linux   /boot/linux26 ro ramdisk_size=16777216 rw quiet splash=silent
  24.     echo    'Loading initial ramdisk ...'
  25.     initrd  /boot/initrd.img
  26. }
  27.  
  28. menuentry 'Install Proxmox VE (Debug mode)' --class debian --class gnu-linux --class gnu --class os {
  29.     echo    'Loading Proxmox Installer ...'
  30.     linux   /boot/linux26 ro ramdisk_size=16777216 rw quiet splash=verbose proxdebug
  31.     echo    'Loading initial ramdisk ...'
  32.     initrd  /boot/initrd.img
  33. }
  34.  
  35. menuentry 'Rescue Boot!' --class debian --class gnu-linux --class gnu --class os {
  36.     insmod lvm
  37.     insmod ext2
  38.     set tmproot=$root
  39.     if test -e (lvm/pve-root)/boot/pve/vmlinuz; then
  40.       echo 'LVM Rescue Boot ...'
  41.       linux (lvm/pve-root)/boot/pve/vmlinuz ro ramdisk_size=16777216 root=/dev/mapper/pve-root
  42.       initrd (lvm/pve-root)/boot/pve/initrd.img
  43.       boot
  44.     else
  45.       insmod zfs
  46.       search --no-floppy --label rpool --set root
  47.       if test -e /ROOT/pve-1/@//boot/pve/vmlinuz; then
  48.         echo 'ZFS Rescue Boot ...'
  49.         linux /ROOT/pve-1/@//boot/pve/vmlinuz ro ramdisk_size=16777216 root=ZFS=rpool/ROOT/pve-1 boot=zfs
  50.         initrd /ROOT/pve-1/@//boot/pve/initrd.img
  51.         boot
  52.       else
  53.         echo 'ERROR: unable to find boot disk automatically.'
  54.       fi
  55.     fi
  56.     set root=$tmproot
  57. }
  58.  
  59. menuentry 'Test memory' {
  60.         linux16 /boot/memtest86+.bin
  61. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top