unify indention

unify indention to four spaces
use grub2-probe to get device map

We get the translated os device to grub device mapping thru the
grub2-probe result. By means of this new method we can avoid the mess of
requirement to create file /boot/grub2/device.map which is intented for
perl bootloader to work but is not necessary for grub2.

This fixes the integration issue with kiwi as it couldn't provide such
device map like yast. (bnc#804065)
clean up unused functions and variables

clean up unused variable $md_discs and UnixDev2GrubDev() function
remove floppy in device map

Remove floppy in device map to fix long time accessing it. As we
don't specify grub device but os device for installation, thus that
entry not used for translate os device any longer. (bnc#796917).
fix grub2-set-default error during installation

During installation we have "/usr/sbin/grub2-set-default: No such file
or directory" error although the installation finished successfully. We
fix this misleading message by moving it to the update and initialize
fuction which grub2 package must has been installed when invoked.
better way to know kerenl device of physical drive

In previous patch we use udevmap to know the kernel device of physical
disk drive. It works for most cases but for the mdadm software raid
testing only reports md device and no links to physical device as we
would expect. This commit use partition map's disk field to test by the
grub2-probe to determine the device map.
update-bootloader refresh cleanup and introduce reinit

The --refresh is supposed to update the config, it uses avoid_init=0 to
communicate bootloader modules and will enforce the reinstall. This is
not optimal for modern bootloaders like grub as they don't require
reinstall to make new config effective.

The refresh method is modified to use avoid_init=1 and keep avod_init=0
for lilo. However we still have the need to install bootloader for
circumstance like bootloader package update, thus we introduce a new
reinit option to serve that purpose which exactly uses avoid_init=0.
Merge pull request #17 from WenhuaChang/master

Misc bug fixing and cleanup for 13.1 factory.