Skip to content

Commit

Permalink
Add basic grml theme to grub
Browse files Browse the repository at this point in the history
  • Loading branch information
mrud committed Dec 19, 2011
1 parent a9f099a commit d501c11
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grml-live
Expand Up @@ -883,7 +883,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
if ! [ -d "${BUILD_OUTPUT}/boot/grub" ] ; then
mkdir -p "${BUILD_OUTPUT}/boot/grub"
fi
cp ${TEMPLATE_DIRECTORY}/boot/grub/* "$BUILD_OUTPUT"/boot/grub/
cp -a ${TEMPLATE_DIRECTORY}/boot/grub/* "$BUILD_OUTPUT"/boot/grub/

# copy grub files from target
cp -a "${CHROOT_OUTPUT}"/usr/lib/grub/*-pc/*.mod "${BUILD_OUTPUT}"/boot/grub/
Expand Down
Binary file added templates/boot/grub/grml-theme/grml-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions templates/boot/grub/grml-theme/theme.txt
@@ -0,0 +1,44 @@
title-text: ""
title-color: "#FFFFFF"
desktop-color: "black"
message-color: "#FFFFFF"

+ image {
file = "grml-logo.png"
left = 45%
top = 2%
}
+ boot_menu {
left = 15%
width = 70%
top = 16%
height = 36%
item_color = "#FFFFFF"
selected_item_color = "orange"
item_spacing = 4
item_height = 12
border_color = "#FFFFFF"

}


# Show an informational message.
+ vbox {
top = 55%
left = 20%
+ label {text = "Press ENTER to boot or E to edit menu entry " color = "white" align = "left"}
+ label {text = "Press C to enter the Grub commandline" color = "white"}
}

+ progress_bar
{
id = "__timeout__"
top = 75%
left = 20%
text_color = "#FFFFFF"
fg_color = "orange"
bg_color = #66B
border_color = #006
text = "@TIMEOUT_NOTIFICATION_LONG@"

}
5 changes: 4 additions & 1 deletion templates/boot/grub/grub.cfg
Expand Up @@ -10,7 +10,9 @@ if loadfont /boot/grub/ascii.pf2 ; then
terminal_output gfxterm
fi

if background_image /boot/grub/grml.png ; then
if [ -f /boot/grub/grml-theme/theme.txt ] ; then
set theme=/boot/grub/grml-theme/theme.txt
elif background_image /boot/grub/grml.png ; then
set color_normal=white/black
set color_highlight=red/black
set menu_color_normal=white/black
Expand All @@ -24,6 +26,7 @@ if [ ${iso_path} ] ; then
set loopback="findiso=${iso_path}"
fi


for config in /boot/grub/*_default.cfg ; do source "$config" ; done
for config in /boot/grub/*_options.cfg ; do source "$config" ; done
source /boot/grub/addons.cfg
Expand Down

0 comments on commit d501c11

Please sign in to comment.