Complex sentence: Until recently, if the father's name was not a specific family name, the child would take his patronymic as a family name, so names in a chain of generations would shift.
Split into simpler sentences: Until recently, if the father's name was not a specific family name, the child would take his patronymic as a family name. So names in a chain of generations would shift.