Skip to content

Instantly share code, notes, and snippets.

@chusiang
Last active May 8, 2021 17:09
Show Gist options
  • Save chusiang/ec90f9993525c7acf69d to your computer and use it in GitHub Desktop.
Save chusiang/ec90f9993525c7acf69d to your computer and use it in GitHub Desktop.
grub config of the Clonezilla and Debian.
# ============================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: grub.cfg
# Modified: 2015-01-15 10:21
# Description: grub config of mix disk for the Clonezilla and Debian.
#
# Now, we can boot with:
# * Clonezilla Live
# * Install Debian 7.7
#
# Reference:
#
# 1. grub.cfg of multi-bootable disk
# - https://gist.github.com/chusiang/93ed60ac40c0fab1476b
#
# ===========================================================
#
set prefix=/EFI/boot/
set default="0"
if loadfont $prefix/unicode.pf2; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
set timeout="30"
set hidden_timeout_quiet=false
if background_image $prefix/ocswp-grub2.png; then
set color_normal=black/black
set color_highlight=magenta/black
else
set color_normal=cyan/blue
set color_highlight=white/blue
fi
# Since no network setting in the squashfs image, therefore if ip=, the network is disabled.
menuentry "Clonezilla live (Default settings, VGA 800x600)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=788 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry "Clonezilla live (Default settings, VGA 1024x768)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=791 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry "Clonezilla live (Default settings, VGA 640x480)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=785 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry "Clonezilla live (Default settings, KMS)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=791 ip= nosplash
initrd /live/initrd.img
}
menuentry "Clonezilla live (To RAM, boot media can be removed later)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=788 toram=filesystem.squashfs ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
menuentry "Clonezilla live Safe graphic settings (vga=normal)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no ip= nomodeset vga=normal nosplash
initrd /live/initrd.img
}
menuentry "Clonezilla live (Failsafe mode)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset nodmraid noeject 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= nomodeset vga=normal nosplash
initrd /live/initrd.img
}
#menuentry "memtest"{
# search --set -f /live/memtest
# linux16 /live/memtest
#}
#menuentry "FreeDOS"{
# linux16 memdisk
# initrd /live/freedos.img
#}
#menuentry "iPXE"{
# search --set -f /live/ipxe.lkn
# linux16 /live/ipxe.lkn
#}
# Custom
#########
menuentry "Install Debian 7.7" {
set background_color=black
set isofile=/iso/debian-7.7.0-amd64-CD-1.iso
loopback loop $isofile
set root=(loop)
linux (loop)/install.amd/vmlinuz iso-scan/filename=$isofile vga=788 -- quiet
initrd (loop)/install.amd/initrd.gz
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment