pygrub: Add option to list grub entries
authorCharles Arnold <carnold@suse.com>
Fri, 26 Oct 2012 11:05:08 +0000 (12:05 +0100)
committerCharles Arnold <carnold@suse.com>
Fri, 26 Oct 2012 11:05:08 +0000 (12:05 +0100)
commitce015753b6b8d00b935a8f75e17cf439ef80c65b
treeeed74f825944d74ab09467fab0d5a6f32c657ffe
parent4453bc8615ab3b4aadbb9ca2f14541dda7a4b785
pygrub: Add option to list grub entries

The argument to "--entry" allows 2 syntaxes, either directly the entry
number in menu.lst, or the whole string behind the "title" key word.
This poses the following issue:

From Dom0 there is no way to guess the number and, or the complete
title string because this string contains the kernel version, which
will change with a kernel update.

This patch adds [-l|--list-entries] as an argument to pygrub.

Signed-off-by: Charles Arnold <carnold@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/pygrub/src/pygrub