summaryrefslogtreecommitdiff
path: root/config/binary_grub
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 00:24:04 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 00:24:04 +0200
commitd7ceda3b39e650db3f98de7da96b5ea40d0ff035 (patch)
tree9fd1fbe1c2c86304073c4fb09abc547d5e4b8f71 /config/binary_grub
parentc344a3b2da7b472b4cfb2d4e05786604c36b458b (diff)
downloadkanotix-d7ceda3b39e650db3f98de7da96b5ea40d0ff035.zip
kanotix-d7ceda3b39e650db3f98de7da96b5ea40d0ff035.tar.gz
added GRUB/ GRUB-EFI config
Diffstat (limited to 'config/binary_grub')
-rw-r--r--config/binary_grub/grub.cfg89
1 files changed, 89 insertions, 0 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg
new file mode 100644
index 0000000..7bde79b
--- /dev/null
+++ b/config/binary_grub/grub.cfg
@@ -0,0 +1,89 @@
+set default=0
+set timeout=5
+
+set boot_en='boot=live config utc=yes locales=us'
+set boot_de='boot=live config utc=no timezone=Europe/Berlin locales=de keyboard-layouts=de keyboard-variant=nodeadkeys'
+
+if loadfont /boot/grub/unicode.pf2 ; then
+ # set gfxmode=auto
+ set gfxmode=800x600
+ insmod vbe
+ insmod vga
+ insmod video_bochs
+ insmod video_cirrus
+ insmod gfxterm
+ terminal_output gfxterm
+fi
+
+insmod png
+if background_image /boot/grub/kanotix-logo.png; then
+ set color_normal=white/black
+ set color_highlight=white/light-blue
+else
+ set menu_color_normal=cyan/blue
+ set menu_color_highlight=white/blue
+fi
+
+menuentry 'Start Kanotix DE' --class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_de} quiet splash
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+}
+
+if test -d /gfxoverlay ; then
+ menuentry 'Start Kanotix DE (gfxoverlay)'--class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_de} gfx=auto quiet splash
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+ }
+fi
+
+menuentry 'Start Kanotix EN' --class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_en} quiet splash
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+}
+
+if test -d /gfxoverlay ; then
+ menuentry 'Start Kanotix EN (gfxoverlay)' --class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_en} gfx=auto quiet splash
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+ }
+fi
+
+menuentry 'Start Kanotix DE (failsafe)' --class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_de} quiet splash noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+}
+
+
+menuentry 'Start Kanotix EN (failsafe)' --class kanotix64 --class gnu-linux --class gnu --class os {
+ echo 'Loading Linux ...'
+ linux /live/vmlinuz ${boot_en} quiet splash noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal
+ echo 'Loading initial ramdisk ...'
+ initrd /live/initrd.img
+}
+
+if [ $efi = 1 ] ; then
+ menuentry 'EFI Shell' {
+ chainloader /efi/shellx64.efi
+ }
+ if search -nf /EFI/Microsoft/Boot/BOOTMGR.EFI ; then
+ menuentry 'Microsoft Bootmgr' {
+ search -sf /EFI/Microsoft/Boot/BOOTMGR.EFI
+ chainloader /EFI/Boot/BOOTX64.EFI
+ }
+ fi
+else
+ menuentry 'Memtest86+' --class memtest {
+ linux16 /live/memtest
+ }
+fi
+