[PATCH] Use indexes in boottool.get_entries() and avoid bug with grub

If entry is "fallback" and bootloader is grub
get_entry("fallback") will not return the entry.
Need to use index instead
To reproduce:
./boottool --info="fallback"
./boottool --info="2"   # assuming that fallback entry is 2

While here, pythonize parsing of boottool --info output

Signed-off-by: Gustavo Rahal <grahal@linux.vnet.ibm.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2806 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed