Advertisement
postcd

Untitled

Jul 27th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.45 KB | None | 0 0
  1. ### BEGIN /etc/grub.d/40_custom ###
  2. # This file provides an easy way to add custom menu entries.  Simply type the
  3. # menu entries you want to add after this comment.  Be careful not to change
  4. # the 'exec tail' line above.
  5. #/boot/grml/ovz/images/pxeboot
  6. menuentry 'Install OpenVZ 7.0.4 (698)' --class fedora --class gnu-linux --class gnu --class os {
  7. linux /boot/grml/ovz/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openvz-iso-7.0.4-698 quiet ip=dhcp
  8. initrd /boot/grml/ovz/images/pxeboot/initrd.img
  9. }
  10. menuentry "openvz-iso-7.0.4-698-netinstall.iso 1" {
  11. set isolabel="/boot/openvz-iso-7.0.4-698-netinstall.iso"
  12. set isofile="/boot/openvz-iso-7.0.4-698-netinstall.iso"
  13. loopback loop $isofile
  14. linux (loop)/images/pxeboot/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=$isolabel ro rd.live.image quiet rhgb
  15. initrd (loop)/images/pxeboot/initrd.img
  16. }
  17. menuentry "openvz-iso-7.0.4-698-netinstall.iso 2" {
  18. set isolabel="/boot/openvz-iso-7.0.4-698-netinstall.iso"
  19. set isofile="/boot/openvz-iso-7.0.4-698-netinstall.iso"
  20. set root=(hd0,2)
  21. loopback loop $isofile
  22. linux (loop)/images/pxeboot/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=$isolabel ro rd.live.image quiet rhgb
  23. initrd (loop)/images/pxeboot/initrd.img
  24. }
  25. menuentry "OVZ ISO" {
  26. set isofile="/boot/openvz-iso-7.0.4-698-netinstall.iso"
  27. loopback loop (hd0,2)$isofile
  28. linux (loop)/images/pxeboot/vmlinuz iso-scan/filename=${isofile} quiet splash
  29. initrd (loop)/images/pxeboot/initrd.img
  30. }
  31. ### END /etc/grub.d/40_custom ###
  32.  
  33. ### BEGIN /etc/grub.d/41_custom ###
  34. if [ -f  ${config_directory}/custom.cfg ]; then
  35.   source ${config_directory}/custom.cfg
  36. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  37.   source $prefix/custom.cfg;
  38. fi
  39. ### END /etc/grub.d/41_custom ###
  40.  
  41. ### BEGIN /etc/grub.d/42_grml ###
  42. Found Grml ISO image: /boot/grml/grml64-full_2017.05.iso
  43. menuentry "Grml Rescue System (grml64-full_2017.05.iso)" {
  44.         insmod part_msdos
  45.         insmod ext2
  46.         set root='hd0,msdos2'
  47.         if [ x$feature_platform_search_hint = xy ]; then
  48.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  f45c02df-f69c-455d-8309-fdf1c1bf8a99
  49.         else
  50.           search --no-floppy --fs-uuid --set=root f45c02df-f69c-455d-8309-fdf1c1bf8a99
  51.         fi
  52.         iso_path="/boot/grml/grml64-full_2017.05.iso"
  53.         export iso_path
  54.         kernelopts="   "
  55.         export kernelopts
  56.         loopback loop "/boot/grml/grml64-full_2017.05.iso"
  57.         set root=(loop)
  58.         configfile /boot/grub/loopback.cfg
  59. }
  60. Found Grml ISO image: /boot/grml/openvz-iso-7.0.4-698-netinstall.iso
  61. menuentry "Grml Rescue System (openvz-iso-7.0.4-698-netinstall.iso)" {
  62.         insmod part_msdos
  63.         insmod ext2
  64.         set root='hd0,msdos2'
  65.         if [ x$feature_platform_search_hint = xy ]; then
  66.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  f45c02df-f69c-455d-8309-fdf1c1bf8a99
  67.         else
  68.           search --no-floppy --fs-uuid --set=root f45c02df-f69c-455d-8309-fdf1c1bf8a99
  69.         fi
  70.         iso_path="/boot/grml/openvz-iso-7.0.4-698-netinstall.iso"
  71.         export iso_path
  72.         kernelopts="   "
  73.         export kernelopts
  74.         loopback loop "/boot/grml/openvz-iso-7.0.4-698-netinstall.iso"
  75.         set root=(loop)
  76.         configfile /boot/grub/loopback.cfg
  77. }
  78. ### END /etc/grub.d/42_grml ###
  79. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement