I want to have a custom service that I've placed into /lib/systemd/system start at boot, but th eonly way I know how at the moment is to run
systemctl enable myservice.service
but I would like to be able to do this without booting into the actual file system so that I can automate the deployment of this configuration.
chroot /mountpoint systemctl enable myservice.service
?systemd-nspawn -b -D /mountpoint
instead ofchroot
– but in this case symlinking will be sufficient.