cmd: bootefi: carve out efi_selftest code from do_bootefi()