Howto remove getty@tty1.service from my custom build

You need to add “.service” at the end

do_install_append() {
    rm ${D}${sysconfdir}/systemd/system/getty.target.wants/getty@tty1.service
}