Ok, that's a real shitpost.
Because Schopenhauer was not talking about ethnicity at all, but about national pride:
"Aber jeder erbärmliche Tropf, der nichts in der Welt hat, darauf er stolz sein könnte, ergreift das letzte Mittel, auf die Nation, der er gerade angehört, stolz zu sein."
("But every pathetic wretch who has nothing in the world to be proud of resorts to the last resort: taking pride in the nation to which he happens to belong.")