I am needing to convert my legacy cfg file to a format that will work for GRUB 2. Here is my code:
Thanks in advance!
Created by generate-pxe-menu! Do NOT edit unless you know what you are doing!
Keep those comment "MENU DEFAULT" and "MENU HIDE"! Do NOT remove them.
Note!!! If "serial" directive exists, it must be the first directive
default vesamenu.c32
timeout 300
prompt 0
noescape 1
MENU MARGIN 5
MENU BACKGROUND CHzilla.png
Set the color for unselected menu item and timeout message
MENU COLOR UNSEL 7;32;41 #4169E1 #cc333355
MENU COLOR TIMEOUT_MSG 7;32;41 #4169E1 #00000000
MENU COLOR TIMEOUT 7;32;41 #4169E1 #00000000
MENU COLOR HELP 7;32;41 #4169E1 #00000000
menu color title 1;34;49 #4169E1 #cc333355 std
menu color sel 7;37;40 #ff000000 #bb9999aa all
menu color border 30;44 #ffffffff #00000000 std
menu color pwdheader 31;47 #4169E1 #20ffffff std
menu color hotkey 35;40 #4169E1 #00000000 std
menu color hotsel 35;40 #4169E1 #bb9999aa all
MENU MASTER PASSWD
say **********
say Clonezilla, the OpenSource Clone System.
say NCHC Free Software Labs, Taiwan.
say clonezilla.org, clonezilla.nchc.org.tw
say THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
say **********
Allow client to edit the parameters
ALLOWOPTIONS 1
simple menu title
MENU TITLE Chapel Hill ISD CHZILLA
Since no network setting in the squashfs image, therefore if ip=, the network is disabled. That's what we want.
CHzilla live 20140518 trusty i386. (C) 2014
ENDTEXT
MENU BEGIN Other modes of Clonezilla live
label Clonezilla live 1024x768
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 1024x768)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
VGA mode 1024x768. OK for most of VGA cards.
ENDTEXT
label Clonezilla live 640x480
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 640x480)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
VGA mode 640x480. OK for most of VGA cards.
ENDTEXT
label Clonezilla live KMS
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, KMS)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=791 ip= nosplash
TEXT HELP
KMS mode. OK for ATI, Intel and NVIDIA VGA cards.
ENDTEXT
label Clonezilla live (To RAM)
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (To RAM. Boot media can be removed later)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
All the programs will be copied to RAM, so you can
remove boot media (CD or USB flash drive) later
ENDTEXT
label Clonezilla live without framebuffer
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Safe graphic settings, vga=normal)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no ip= nomodeset vga=normal nosplash
TEXT HELP
Disable console frame buffer support
ENDTEXT
label Clonezilla live failsafe mode
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Failsafe mode)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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
TEXT HELP
acpi=off irqpoll noapic noapm nodma nomce nolapic
nosmp nomodeset vga=normal nosplash
ENDTEXT
MENU END
label local
# MENU DEFAULT
# MENU HIDE
MENU LABEL Local operating system in harddrive (if available)
# MENU PASSWD
# 2 method to boot local device:
# (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
# localboot 0
# (2) For chain.c32, you can assign the boot device.
# Ref: extlinux.doc from syslinux
# Syntax: APPEND [hd|fd]<number> [<partition>]</partition>
# [<partition>]</partition> is optional.
# Ex:
# Second partition (2) on the first hard disk (hd0);
# Linux would typically call this /dev/hda2 or /dev/sda2, then it's "APPEND hd0 2"
#
kernel chain.c32
append hd0
TEXT HELP
Boot local OS from first hard disk if it's available
ENDTEXT</number>
MENU BEGIN Memtest & FreeDOS
Note! *.bin is specially purpose for syslinux,
Do NOT use memtest.bin, use memtest instead of memtest.bin
label memtest
# MENU DEFAULT
# MENU HIDE
MENU LABEL Memory test using Memtest86+
# MENU PASSWD
kernel /live/memtest
TEXT HELP
Run memory test using Memtest86+
ENDTEXT
label FreeDOS
# MENU DEFAULT
# MENU HIDE
MENU LABEL FreeDOS
# MENU PASSWD
kernel memdisk
append initrd=/live/freedos.img
TEXT HELP
Run FreeDOS
ENDTEXT
MENU END
label iPXE
# MENU DEFAULT
# MENU HIDE
MENU LABEL Network boot via iPXE
# MENU PASSWD
kernel /live/ipxe.lkn
TEXT HELP
Run iPXE to enable network (PXE) boot
ENDTEXT
MENU END
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@Bret,
This is weird. Why it need to be approved... It seems the setting on SF has some issue. If you are a registered user, your post will be shown immediately.
Anyway, for your question, you can refer to the file "/EFI/boot/grub.cfg" in Clonezilla live amd64 zip/iso.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am needing to convert my legacy cfg file to a format that will work for GRUB 2. Here is my code:
Thanks in advance!
Created by generate-pxe-menu! Do NOT edit unless you know what you are doing!
Keep those comment "MENU DEFAULT" and "MENU HIDE"! Do NOT remove them.
Note!!! If "serial" directive exists, it must be the first directive
default vesamenu.c32
timeout 300
prompt 0
noescape 1
MENU MARGIN 5
MENU BACKGROUND CHzilla.png
Set the color for unselected menu item and timeout message
MENU COLOR UNSEL 7;32;41 #4169E1 #cc333355
MENU COLOR TIMEOUT_MSG 7;32;41 #4169E1 #00000000
MENU COLOR TIMEOUT 7;32;41 #4169E1 #00000000
MENU COLOR HELP 7;32;41 #4169E1 #00000000
menu color title 1;34;49 #4169E1 #cc333355 std
menu color sel 7;37;40 #ff000000 #bb9999aa all
menu color border 30;44 #ffffffff #00000000 std
menu color pwdheader 31;47 #4169E1 #20ffffff std
menu color hotkey 35;40 #4169E1 #00000000 std
menu color hotsel 35;40 #4169E1 #bb9999aa all
MENU MASTER PASSWD
say **********
say Clonezilla, the OpenSource Clone System.
say NCHC Free Software Labs, Taiwan.
say clonezilla.org, clonezilla.nchc.org.tw
say THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
say **********
Allow client to edit the parameters
ALLOWOPTIONS 1
simple menu title
MENU TITLE Chapel Hill ISD CHZILLA
Since no network setting in the squashfs image, therefore if ip=, the network is disabled. That's what we want.
label Clonezilla live
MENU DEFAULT
MENU HIDE
MENU LABEL CHzilla Restore
MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=swinneyb,password=95honda //10.100.0.75/images /home/partimag" ocs_live_run="ocs-sr -batch -g auto -e1 auto -e2 -r -j2 -p reboot restoredisk ask_user sda" ocs_live_batch="no" keyboard-layouts=NONE locales="en_US.UTF-8" vga=788 toram=filesystem.squashfs nosplash
TEXT HELP
ENDTEXT
label Clonezilla live
MENU DEFAULT
MENU HIDE
MENU LABEL CHzilla Clone
MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=swinneyb,password=password //10.100.0.75/images /home/partimag" ocs_live_run="ocs-sr -q2 -batch -j2 -rm-win-swap-hib -z1p -p true savedisk ask_user sda" ocs_live_batch="no" keyboard-layouts=NONE locales="en_US.UTF-8" vga=788 toram=filesystem.squashfs nosplash
TEXT HELP
ENDTEXT
MENU BEGIN Other modes of Clonezilla live
label Clonezilla live 1024x768
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 1024x768)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
VGA mode 1024x768. OK for most of VGA cards.
ENDTEXT
label Clonezilla live 640x480
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 640x480)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
VGA mode 640x480. OK for most of VGA cards.
ENDTEXT
label Clonezilla live KMS
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, KMS)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no vga=791 ip= nosplash
TEXT HELP
KMS mode. OK for ATI, Intel and NVIDIA VGA cards.
ENDTEXT
label Clonezilla live (To RAM)
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (To RAM. Boot media can be removed later)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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=no
TEXT HELP
All the programs will be copied to RAM, so you can
remove boot media (CD or USB flash drive) later
ENDTEXT
label Clonezilla live without framebuffer
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Safe graphic settings, vga=normal)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no ip= nomodeset vga=normal nosplash
TEXT HELP
Disable console frame buffer support
ENDTEXT
label Clonezilla live failsafe mode
# MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Failsafe mode)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=user config quiet noswap edd=on nomodeset 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
TEXT HELP
acpi=off irqpoll noapic noapm nodma nomce nolapic
nosmp nomodeset vga=normal nosplash
ENDTEXT
MENU END
label local
# MENU DEFAULT
# MENU HIDE
MENU LABEL Local operating system in harddrive (if available)
# MENU PASSWD
# 2 method to boot local device:
# (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
# localboot 0
# (2) For chain.c32, you can assign the boot device.
# Ref: extlinux.doc from syslinux
# Syntax: APPEND [hd|fd]<number> [<partition>]</partition>
# [<partition>]</partition> is optional.
# Ex:
# Second partition (2) on the first hard disk (hd0);
# Linux would typically call this /dev/hda2 or /dev/sda2, then it's "APPEND hd0 2"
#
kernel chain.c32
append hd0
TEXT HELP
Boot local OS from first hard disk if it's available
ENDTEXT</number>
MENU BEGIN Memtest & FreeDOS
Note! *.bin is specially purpose for syslinux,
Do NOT use memtest.bin, use memtest instead of memtest.bin
label memtest
# MENU DEFAULT
# MENU HIDE
MENU LABEL Memory test using Memtest86+
# MENU PASSWD
kernel /live/memtest
TEXT HELP
Run memory test using Memtest86+
ENDTEXT
label FreeDOS
# MENU DEFAULT
# MENU HIDE
MENU LABEL FreeDOS
# MENU PASSWD
kernel memdisk
append initrd=/live/freedos.img
TEXT HELP
Run FreeDOS
ENDTEXT
MENU END
label iPXE
# MENU DEFAULT
# MENU HIDE
MENU LABEL Network boot via iPXE
# MENU PASSWD
kernel /live/ipxe.lkn
TEXT HELP
Run iPXE to enable network (PXE) boot
ENDTEXT
MENU END
When will this post be approved?
I need help ASAP
@Bret,
This is weird. Why it need to be approved... It seems the setting on SF has some issue. If you are a registered user, your post will be shown immediately.
Anyway, for your question, you can refer to the file "/EFI/boot/grub.cfg" in Clonezilla live amd64 zip/iso.
Steven.