~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to .pc/mkconfig_recovery_title.patch/util/grub.d/10_hurd.in

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  OS=GNU
33
33
else
34
34
  OS="${GRUB_DISTRIBUTOR} GNU/Hurd"
35
 
  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
 
35
  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
36
36
fi
37
37
 
38
38
at_least_one=false
108
108
EOF
109
109
  fi
110
110
 
111
 
  prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"|sed "s/^/$submenu_indentation/"
 
111
  prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | grub_add_tab|sed "s/^/$submenu_indentation/"
112
112
  message="$(gettext_printf "Loading GNU Mach ...")"
113
113
 
114
114
  if [ x$type = xrecovery ] ; then
122
122
EOF
123
123
 
124
124
  if [ x$type != xrecovery ] ; then
125
 
      save_default_entry | sed -e "s/^/\t/"| sed "s/^/$submenu_indentation/"
 
125
      save_default_entry | grub_add_tab| sed "s/^/$submenu_indentation/"
126
126
  fi
127
 
  prepare_grub_to_access_device "${GRUB_DEVICE}" | sed -e "s/^/\t/"| sed "s/^/$submenu_indentation/"
 
127
  prepare_grub_to_access_device "${GRUB_DEVICE}" | grub_add_tab| sed "s/^/$submenu_indentation/"
128
128
  message="$(gettext_printf "Loading the Hurd ...")"
129
129
  if [ x$type = xrecovery ] ; then
130
130
      opts=
151
151
# Extra indentation to add to menu entries in a submenu. We're not in a submenu
152
152
# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
153
153
submenu_indentation=""
154
 
is_first_entry=true
 
154
is_top_level=true
155
155
 
156
156
while [ "x$kernels" != "x" ] ; do
157
157
  kernel=`version_find_latest $kernels`
158
158
 
159
 
  if [ "x$is_first_entry" = xtrue ]; then
 
159
  if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
160
160
      hurd_entry "$kernel" simple
161
 
      submenu_indentation="\t"
 
161
      submenu_indentation="$grub_tab"
162
162
    
163
163
      # TRANSLATORS: %s is replaced with an OS name
164
164
      echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnuhurd-advanced-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
 
165
      is_top_level=false
165
166
  fi
166
167
 
167
168
  hurd_entry "$kernel" advanced
168
169
  hurd_entry "$kernel" recovery
169
170
 
170
171
  kernels=`echo $kernels | tr ' ' '\n' | grep -vx $kernel | tr '\n' ' '`
171
 
  is_first_entry=false
172
172
done
173
173
 
174
174
# If at least one kernel was found, then we need to
175
175
# add a closing '}' for the submenu command.
176
 
if [ x"$is_first_entry" != xtrue ]; then
 
176
if [ x"$is_top_level" != xtrue ]; then
177
177
  echo '}'
178
178
fi
179
179