UEFI boot by USB stick using kickstart script result in "Error setting up base repository"

UEFI boot by USB stick using kickstart script result in “Error setting up base repository”,
but it works all right without kickstart script or using legacy boot such as CDROM.
It’s weird and I don’t know what’s wrong with it.

Any suggestions are deeply appreciated