Log Message: |
Make grubby to recognize Ubuntu's spin of Grub2
We are looking to use grubby as a bootloader entries
manager for the autotest project:
http://autotest.kernel.org/
The project aims to cover more distros than just
red hat based ones, so this small patch fixes the
tool under Ubuntu. They have chosen to name grub2
grub, in all directory references. Also, they don't
make symlinks of grub config files on /etc. So,
adapt the code to take into consideration this
behavior.
Changes from v1:
* Removed nested set of {}
* Made the return in case /etc/grub.d is found
indented
* Moved the dbgPrint("not found\n") statement
before the last return. Also, put a new
dbgPrint("found\n") if we've found a suitable
grub2 config file ubuntu/debian style.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
|