NoPaste

Die grub.cfg von clonezilla 2.7.3-19 i686 PAE

von SGibbi
SNIPPET_DESC:
... Als Beispiel zum Lernen
SNIPPET_CREATION_TIME:
25.09.2021 07:15:29
SNIPPET_PRUNE_TIME:
25.10.2021 07:15:29

SNIPPET_TEXT:
  1. #
  2. set pref=/boot/grub
  3. set default="0"
  4. # For grub 2.04, a workaround to avoid boot failure is to add "rmmod tpm": https://bugs.debian.org/975835. However, it might fail in secure boot uEFI machine, and the error is like:
  5. # error: verification requested but nobody cares: /live/vmlinuz.
  6. # Out of range pointer 0x3000000004040
  7. # Aborted. Press any key to exit.
  8. # rmmod tpm
  9.  
  10. # Load graphics (only corresponding ones will be found)
  11. # (U)EFI
  12. insmod efi_gop
  13. insmod efi_uga
  14. # legacy BIOS
  15. # insmod vbe
  16.  
  17. if loadfont $pref/unicode.pf2; then
  18.   set gfxmode=auto
  19.   insmod gfxterm
  20.   # Set the language for boot menu prompt, e.g., en_US, zh_TW...
  21.  set lang=en_US
  22.   terminal_output gfxterm
  23. fi
  24. set timeout="30"
  25. set hidden_timeout_quiet=false
  26.  
  27. insmod png
  28. if background_image $pref/ocswp-grub2.png; then
  29.   set color_normal=black/black
  30.   set color_highlight=magenta/black
  31. else
  32.   set color_normal=cyan/blue
  33.   set color_highlight=white/blue
  34. fi
  35.  
  36. # Uncomment the following for serial console
  37. # The command serial initializes the serial unit 0 with the speed 38400bps.
  38. # The serial unit 0 is usually called ‘COM1’. If COM2, use ‘--unit=1’ instead.
  39. #serial --unit=0 --speed=38400
  40. #terminal_input serial
  41. #terminal_output serial
  42.  
  43. # Decide if the commands: linux/initrd (default) or linuxefi/initrdefi
  44. set linux_cmd=linux
  45. set initrd_cmd=initrd
  46. export linux_cmd initrd_cmd
  47. if [ "${grub_platform}" = "efi" -a -e "/amd64-release.txt" ]; then
  48.   # Only amd64 release we switch to linuxefi/initrdefi since it works better with security boot (shim)
  49.  set linux_cmd=linuxefi
  50.   set initrd_cmd=initrdefi
  51. fi
  52.  
  53. insmod play
  54. play 960 440 1 0 4 440 1
  55.  
  56. # Since no network setting in the squashfs image, therefore if ip=, the network is disabled.
  57.  
  58. menuentry "Clonezilla live (VGA 800x600)" --id live-default {
  59.   search --set -f /live/vmlinuz
  60.   $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  61.   $initrd_cmd /live/initrd.img
  62. }
  63.  
  64. menuentry --hotkey=r "Clonezilla live (VGA 800x600 & To RAM)" --id live-toram {
  65.   search --set -f /live/vmlinuz
  66.   $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  67.   $initrd_cmd /live/initrd.img
  68. }
  69.  
  70. menuentry --hotkey=l "Clonezilla live (VGA with large font & To RAM)" --id live-vga-large-font-toram {
  71.   search --set -f /live/vmlinuz
  72.   $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" nomodeset toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  nosplash live_console_font_size=16x32
  73.   $initrd_cmd /live/initrd.img
  74. }
  75.  
  76. menuentry --hotkey=s "Clonezilla live (Speech synthesis)"{
  77.   search --set -f /live/vmlinuz
  78.   $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 speakup.synth=soft ---
  79.   $initrd_cmd /live/initrd.img
  80. }
  81. submenu 'Other modes of Clonezilla live' {
  82.   menuentry "Clonezilla live (VGA 1024x768)"{
  83.     search --set -f /live/vmlinuz
  84.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  85.     $initrd_cmd /live/initrd.img
  86.   }
  87.  
  88.   menuentry "Clonezilla live (VGA 640x480)"{
  89.     search --set -f /live/vmlinuz
  90.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=785 ip= net.ifnames=0  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
  91.     $initrd_cmd /live/initrd.img
  92.   }
  93.  
  94.   menuentry --hotkey=K "Clonezilla live (KMS)"{
  95.     search --set -f /live/vmlinuz
  96.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 ip= net.ifnames=0  nosplash
  97.     $initrd_cmd /live/initrd.img
  98.   }
  99.  
  100.   menuentry --hotkey=R "Clonezilla live (KMS & To RAM)" {
  101.     search --set -f /live/vmlinuz
  102.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  nosplash
  103.     $initrd_cmd /live/initrd.img
  104.   }
  105.  
  106.   menuentry "Clonezilla live (KMS with large font & To RAM)" --id live-kms-large-font-toram {
  107.     search --set -f /live/vmlinuz
  108.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 toram=live,syslinux,EFI,boot,.disk,utils ip= net.ifnames=0  nosplash live_console_font_size=16x32
  109.     $initrd_cmd /live/initrd.img
  110.   }
  111.  
  112.   menuentry "Clonezilla live Safe graphic settings (vga=normal)"{
  113.     search --set -f /live/vmlinuz
  114.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" ip= net.ifnames=0 nomodeset vga=normal nosplash
  115.     $initrd_cmd /live/initrd.img
  116.   }
  117.  
  118.   menuentry "Clonezilla live (Failsafe mode)"{
  119.     search --set -f /live/vmlinuz
  120.     $linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" acpi=off irqpoll noapic noapm nodma nomce nolapic nosmp ip= net.ifnames=0 nomodeset vga=normal nosplash
  121.     $initrd_cmd /live/initrd.img
  122.   }
  123. }  
  124.  
  125. menuentry "Local operating system (if available)" --id local-disk {
  126.   echo "Booting first local disk..."
  127.   # Generate boot menu automatically
  128.  configfile /boot/grub/boot-local-efi.cfg
  129.   # If not chainloaded, definitely no uEFI boot loader was found.
  130.  echo "No uEFI boot loader was found!"
  131.   sleep 15
  132. }
  133.  
  134. #menuentry "memtest"{
  135. #  search --set -f /live/memtest
  136. #  linux16 /live/memtest
  137. #}
  138.  
  139. #menuentry "FreeDOS"{
  140. #  linux16 memdisk
  141. #  initrd /live/freedos.img
  142. #}
  143.  
  144. menuentry "Network boot via iPXE" {
  145.   search --no-floppy --set=root -f /live/ipxe.efi
  146.   chainloader /live/ipxe.efi + 1
  147. }
  148.  
  149. menuentry 'uEFI firmware setup' 'uefi-firmware' {
  150.   echo "Entering uEFI firmware setup..."
  151.   fwsetup
  152. }
  153.  
  154. menuentry "Clonezilla live 2.7.3-19-i686-pae info"{
  155.   echo Clonezilla, the OpenSource Clone System.
  156.   echo NCHC Free Software Labs, Taiwan.
  157.   echo clonezilla.org, clonezilla.nchc.org.tw
  158.   echo \* Boot menu for EFI machine
  159.   echo \* Clonezilla live version: 2.7.3-19-i686-pae. (C) 2003-2021, NCHC, Taiwan
  160.   echo \* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
  161.   sleep --verbose --interruptible 10

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN