Fix installation on G2 and detecting kexec hardboot in kernel