Various device name checks ported from OpenSUSE

bnc#869695