Skip to contentSkip to conversation

Bug#607867: grub-common: shouty "XEN" in menu items

DISCUSSION Colin Watson 3 participants 7 messages Dec 23, 2010 – Jan 2, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Ian Campbell

update-grub currently produces menu items like:

	'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64'

There is no reason to capitalise Xen in that way and IMHO it looks strange.

Quoted 7 lines

The attached patch switches to:

	'Debian GNU/Linux, with Xen 4.0-amd64 and Linux 2.6.32-5-xen-amd64'

I moved Xen first since I think it makes it clearer that a given menu item launches Xen, which is useful information to put up front. Also I found that with the long Linux version numbers Debian uses the Xen was very nearly off the edge of the screen.

Makes sense to me. Vladimir, you wrote this script - do you agree?

Could you please provide a ChangeLog entry for upstream?

Quoted 2 lines

Although the string is processed with gettext_quoted it doesn't appear to be translated anywhere (or at least I couldn't find where).

I'm not sure about unstable, but at least the version of GRUB in experimental has translations of messages in util/grub.d/.

Quoted 8 lines

=== modified file 'util/grub.d/20_linux_xen.in'

grub.d/20_linux_xen.in +0 -1
@@ -60,11 +60,11 @@
   args="$5"
   xen_args="$6"
   if ${recovery} ; then
-    title="$(gettext_quoted "%s, with Linux %s and XEN %s (recovery mode)")"

grub.d/20_linux_xen.in line 70

Quoted 10 lines
grub.d/20_linux_xen.in +3 -2
+    title="$(gettext_quoted "%s, with Xen %s and Linux %s (recovery mode)")"
   else
-    title="$(gettext_quoted "%s, with Linux %s and XEN %s")"
+    title="$(gettext_quoted "%s, with Xen %s and Linux %s")"
   fi
-  printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}" "${xen_version}"
+  printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}"
   if ! ${recovery} ; then
       save_default_entry | sed -e "s/^/\t/"
   fi

Thanks,

Signature · 1 line
Colin Watson                                       [[email protected]]
#2 lore raw
Quoted 1 line · Colin Watson

Could you please provide a ChangeLog entry for upstream?

Sure. How about:

2010-12-23 Ian Campbell <[email protected]>
* util/grub.d/20_linux_xen.in: Correctly capitalize Xen and reorder menu item wording to make it clearer that this entry will launch Xen.

Quoted 5 lines
Quoted 2 lines

Although the string is processed with gettext_quoted it doesn't appear to be translated anywhere (or at least I couldn't find where).

I'm not sure about unstable, but at least the version of GRUB in experimental has translations of messages in util/grub.d/.

Ah, I was looking in the upstream bzr. In the Debian bzr the only use of the old string is in po/grub.pot but not in any po/??.po so I don't think there is any update required here.

Thanks,
Ian.

Signature · 6 lines
Ian Campbell
Current Noise: Nuclear Assault - Brain Death

Banacek's Eighteenth Polish Proverb:
	The hippo has no sting, but the wise man would rather be sat upon
	by the bee.
#3 lore raw

On a related note how about this patch too:

=== modified file 'util/grub.d/20_linux_xen.in'

grub.d/20_linux_xen.in +4 -2
@@ -73,10 +73,12 @@
     prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
   fi
   printf '%s\n' "${prepare_boot_cache}"
-  message="$(gettext_printf "Loading Linux %s ..." ${version})"
+  xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
+  lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
   cat << EOF
-	echo	'$message'
+	echo	'$xmessage'
 	multiboot	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
+	echo	'$lmessage'
 	module	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
 EOF
   if test -n "${initrd}" ; then
Signature · 3 lines
Ian Campbell

Journalism will kill you, but it will keep you alive while you're at it.
#4 lore raw
Quoted 2 lines · Ian Campbell

On a related note how about this patch too:

Could you supply the ChangeLog?

Quoted 29 lines

=== modified file 'util/grub.d/20_linux_xen.in'

grub.d/20_linux_xen.in +4 -2
@@ -73,10 +73,12 @@
     prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
   fi
   printf '%s\n' "${prepare_boot_cache}"
-  message="$(gettext_printf "Loading Linux %s ..." ${version})"
+  xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
+  lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
   cat << EOF
-	echo	'$message'
+	echo	'$xmessage'
 	multiboot	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
+	echo	'$lmessage'
 	module	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
 EOF
   if test -n "${initrd}" ; then

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#5 lore raw
In reply to Colin Watson
Quoted 10 lines · Colin Watson
Quoted 8 lines · Ian Campbell

update-grub currently produces menu items like:

	'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64'

There is no reason to capitalise Xen in that way and IMHO it looks strange.

The attached patch switches to:

	'Debian GNU/Linux, with Xen 4.0-amd64 and Linux 2.6.32-5-xen-amd64'
Quoted 8 lines
Quoted 5 lines

I moved Xen first since I think it makes it clearer that a given menu item launches Xen, which is useful information to put up front. Also I found that with the long Linux version numbers Debian uses the Xen was very nearly off the edge of the screen.

Makes sense to me. Vladimir, you wrote this script - do you agree?

Ok with me. You can change it in trunk.

Quoted 32 lines

Could you please provide a ChangeLog entry for upstream?

Quoted 3 lines

Although the string is processed with gettext_quoted it doesn't appear to be translated anywhere (or at least I couldn't find where).

I'm not sure about unstable, but at least the version of GRUB in experimental has translations of messages in util/grub.d/.

Quoted 9 lines

=== modified file 'util/grub.d/20_linux_xen.in'

grub.d/20_linux_xen.in +0 -1
@@ -60,11 +60,11 @@
   args="$5"
   xen_args="$6"
   if ${recovery} ; then
-    title="$(gettext_quoted "%s, with Linux %s and XEN %s (recovery mode)")"

grub.d/20_linux_xen.in line 70

Quoted 10 lines
grub.d/20_linux_xen.in +3 -2
+    title="$(gettext_quoted "%s, with Xen %s and Linux %s (recovery mode)")"
   else
-    title="$(gettext_quoted "%s, with Linux %s and XEN %s")"
+    title="$(gettext_quoted "%s, with Xen %s and Linux %s")"
   fi
-  printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}" "${xen_version}"
+  printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${xen_version}" "${version}"
   if ! ${recovery} ; then
       save_default_entry | sed -e "s/^/\t/"
   fi

Thanks,

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#6 lore raw
Quoted 10 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 9 lines · Colin Watson
Quoted 8 lines · Ian Campbell

update-grub currently produces menu items like:

	'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64'

There is no reason to capitalise Xen in that way and IMHO it looks strange.

The attached patch switches to:

	'Debian GNU/Linux, with Xen 4.0-amd64 and Linux 2.6.32-5-xen-amd64'
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

I moved Xen first since I think it makes it clearer that a given menu item launches Xen, which is useful information to put up front. Also I found that with the long Linux version numbers Debian uses the Xen was very nearly off the edge of the screen.

Makes sense to me. Vladimir, you wrote this script - do you agree?

Ok with me. You can change it in trunk.

Thanks. Ian, I've applied both your patches to trunk (extending your ChangeLog entry to cover the second as well); they'll be in the next snapshot.

2010-12-31 Ian Campbell <[email protected]>

* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize Xen and reorder menu item wording to make it clearer that this entry will launch Xen. Print separate messages when loading Xen and Linux.

Signature · 1 line
Colin Watson                                       [[email protected]]
#7 lore raw
Quoted 10 lines · Colin Watson

Ian, I've applied both your patches to trunk (extending your ChangeLog entry to cover the second as well); they'll be in the next snapshot.

2010-12-31 Ian Campbell <[email protected]>

* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize Xen and reorder menu item wording to make it clearer that this entry will launch Xen. Print separate messages when loading Xen and Linux.

Awesome. Thanks!

Ian.

Signature · 4 lines
Ian Campbell

Democracy becomes a government of bullies, tempered by editors.
		-- Ralph Waldo Emerson