First, use default_boot_mode in get_boot_mode instead of BIOS. Second, call sync_boot_mode for all ramdisk types in the PXE boot, not only during deployment. Change-Id: I3f13bacbdcb319c191eeb8ae93aecf8fba68f9ec