@%@UCRWARNING=# @%@

# update-grub is automatically run through a Univention Configuration
# Registry module upon modification

GRUB_DEFAULT=0
GRUB_TIMEOUT=@%@grub/timeout@%@
GRUB_DISTRIBUTOR=Univention

@!@
defoptions=''
if configRegistry.get('grub/quiet', "False").lower() in ['yes', 'true', '1']:
	defoptions += ' quiet'
if configRegistry.get('grub/loglevel', False):
	defoptions += ' loglevel=%s' % configRegistry['grub/loglevel']

rootdelay= configRegistry.get('grub/rootdelay', '5')
defoptions += ' rootdelay=%s' % rootdelay

defoptions += ' %s' % configRegistry.get('grub/bootsplash', 'splash')
print 'GRUB_CMDLINE_LINUX_DEFAULT="%s"' % defoptions
@!@

GRUB_CMDLINE_LINUX="@%@grub/append@%@"
GRUB_CMDLINE_XEN="@%@grub/xenhopt@%@"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=@%@grub/gfxmode@%@

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# This option passes the video configured in Grub (through grub/gfxmode) to
# the Linux kernel
GRUB_GFXPAYLOAD_LINUX=@%@grub/gfxpayload@%@

# Background image and menu color
@!@
if configRegistry.get('grub/backgroundimage', ''):
	print 'GRUB_BACKGROUND="%s"' % configRegistry["grub/backgroundimage"]
if configRegistry.get('grub/color/normal', ''):
	print 'GRUB_COLOR_NORMAL="%s"' % configRegistry["grub/color/normal"]
if configRegistry.get('grub/color/highlight', ''):
	print 'GRUB_COLOR_HIGHLIGHT="%s"' % configRegistry["grub/color/highlight"]
if configRegistry.get('grub/menu/color/normal', ''):
	print 'GRUB_MENU_COLOR_NORMAL="%s"' % configRegistry["grub/menu/color/normal"]
if configRegistry.get('grub/menu/color/highlight', ''):
	print 'GRUB_MENU_COLOR_HIGHLIGHT="%s"' % configRegistry["grub/menu/color/highlight"]
@!@

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
