We are currently using yocto and systemd (dunfell). How can I change the default boot target during buildtime to custom.target
custom.target
In your image recipe add following line:
SYSTEMD_DEFAULT_TARGET = "custom.target"