On Di, 05.03.19 12:16, ashitha v (ash15489@xxxxxxxxx) wrote: > Hi, > > How can I change the default.target to a custom.target permanently? When > the image is booting, it is set to multi-user.target by creating a symlink > from /etc/systemd/system/default.target. If I do systemctl set-default > custom.target, > then the subsequent boots have the right default.target and works fine. > If I were to link default to custom.target during file system > installation, would that get overridden by the multi-user.target? When > should the linking take place for systemd to identify the right > default.target? Who sets the symlink from default.target to > multi-user.target? The /etc/systemd/system/default.target symlink is something the admin is supposed to configure on the local system. /usr/lib/systemd/system/default.target is the vendor default, that is picked by the image builder and is in effect if the /etc/systemd/system/default.target symlink does not exist. hence, if you are an os developer who puts out an OS image you configure the one in /usr/lib and do not supply the one in /etc. If you are an admin you set and change the one in /etc, and can revert to vendor defaults by deleting it. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel