Happy-Ferret / burg

Automatically exported from code.google.com/p/burg
0 stars 0 forks source link

Burg not showing Windows icon #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Burg
2. Edit images as described in issue 7
3.

What is the expected output? What do you see instead?
I would expect to see the windows icon for my Windows 7 installation. Instead, 
I see the "Unknown" icon

What version of the product are you using? On what operating system?
Most recent, installed from repositories. On Ubuntu 10.04/Windows 7

Please provide any additional information below.
See attached screenshot.

Original issue reported on code.google.com by ssain...@gmail.com on 20 Jun 2010 at 3:03

Attachments:

GoogleCodeExporter commented 8 years ago
Please paste your burg.cfg as well.

Original comment by bean12...@gmail.com on 21 Jun 2010 at 6:39

GoogleCodeExporter commented 8 years ago
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/burg-mkconfig using templates
# from /etc/burg.d and settings from /etc/default/grub
#

### BEGIN /etc/burg.d/00_header ###
set theme_name=ubuntu
set gfxmode=640x480
if [ -s $prefix/burgenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
function select_menu {
  if menu_popup -t template_popup theme_menu ; then
    free_config template_popup template_subitem menu class screen
    load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
    save_env theme_name
    menu_refresh
  fi
}
function toggle_fold {
  if test -z $theme_fold ; then
    set theme_fold=1
  else
    set theme_fold=
  fi
  save_env theme_fold
  menu_refresh
}
function select_resolution {
  if menu_popup -t template_popup resolution_menu ; then
    menu_reload_mode
    save_env gfxmode
  fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
  insmod coreui
  menu_region.text
  load_string '+theme_menu { -arabic_and_freedom { command="set theme_name=arabic_and_freedom" }}'
  load_string '+theme_menu { -black_and_white { command="set theme_name=black_and_white" }}'
  load_string '+theme_menu { -chiva { command="set theme_name=chiva" }}'
  load_string '+theme_menu { -coffee { command="set theme_name=coffee" }}'
  load_string '+theme_menu { -minimum { command="set theme_name=minimum" }}'
  load_string '+theme_menu { -proto { command="set theme_name=proto" }}'
  load_string '+theme_menu { -radiance { command="set theme_name=radiance" }}'
  load_string '+theme_menu { -radiancetext { command="set theme_name=radiancetext" }}'
  load_string '+theme_menu { -refit { command="set theme_name=refit" }}'
  load_string '+theme_menu { -sora { command="set theme_name=sora" }}'
  load_string '+theme_menu { -sora_clean { command="set theme_name=sora_clean" }}'
  load_string '+theme_menu { -sora_extended { command="set theme_name=sora_extended" }}'
  load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
  load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
  load_string '+theme_menu { -winter { command="set theme_name=winter" }}'
  load_config ${prefix}/themes/conf.d/10_hotkey
  load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
  insmod vbe
  insmod png
  insmod jpeg
  set gfxfont="Unifont Regular 16"
  menu_region.gfx
  vmenu resolution_menu
  controller.ext
fi
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set fe6ac39f-292b-4915-affb-4b8f64120dbe
set locale_dir=($root)/boot/burg/locale
set lang=en
insmod gettext
set timeout=30
### END /etc/burg.d/00_header ###

### BEGIN /etc/burg.d/05_os-prober ###
menuentry "Windows 7" {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 5ca8be0aa8bde326
    chainloader +1
}
### END /etc/burg.d/05_os-prober ###

### BEGIN /etc/burg.d/10_linux ###
menuentry 'Ubuntu ' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set fe6ac39f-292b-4915-affb-4b8f64120dbe
    linux   /boot/vmlinuz-2.6.32-22-generic root=/dev/sda3 ro   quiet splash
}
### END /etc/burg.d/10_linux ###

### BEGIN /etc/burg.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/burg.d/40_custom ###

Original comment by ssain...@gmail.com on 21 Jun 2010 at 5:26

GoogleCodeExporter commented 8 years ago
Are you using a customized 05_os-prober ? there is no such file in the default 
installation.

Anyway, you probably use a old version os-prober, or copy it from grub2. In 
burg, you need to use --class option to specify the os, for example, the 
windows entry should be:

menuentry "Windows 7" --class windows {
    insmod ntfs
    set root='(hd0,2)'
    search --no-floppy --fs-uuid --set 5ca8be0aa8bde326
    chainloader +1
}

Original comment by bean12...@gmail.com on 23 Jun 2010 at 6:30

GoogleCodeExporter commented 8 years ago

Original comment by bean12...@gmail.com on 23 Jun 2010 at 5:12

GoogleCodeExporter commented 8 years ago
I'm not using a custom file, I just renumbered them, so that os_prober is run 
before linux, so that Windows is the "default" OS.

However, fix worked, somehow the class information wasn't there. Many thanks!

Original comment by ssain...@gmail.com on 25 Jun 2010 at 4:32