Update grub2 configuration for UEFI booting with fallback to bios mode. Include new detection scheme so we don't list existing partitions of the installer. Signed-off-by: Ryan Harper <ryan.harper@canonical.com>