On 12/22/2013 06:17 PM, Armin K. wrote: > On 12/22/2013 04:59 PM, Pierre Labastie wrote: >> Hi, >> >> I think jhalfs is now usable for building the systemd branch of LFS. Be >> careful that the configuration files indicated at the end of the build are >> for >> LFS trunk, and that they are different for systemd. >> >> I have a question for systemd gurus: when you use "systemctl enable" does is >> do more than linking the right files to the configuration dir? >> >> If not, why not use ln -s commands in chapter 7 instead? >> >> Regards >> Pierre >> > > Because it's the systemd way. It might create more than one link in more > than one (sub)directory of /etc/systemd/system. >
Also, compare this one ln -s /lib/systemd/system/ifupdown@.service /etc/systemd/system/multi-user.target.wants/ifupdown@enp2s1.service with systemctl enable ifupdown@enp2s1 This is even simple one. There are more complicated units like: systemctl enable NetworkManager ln -s '/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service' ln -s '/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager.service' ln -s '/lib/systemd/system/NetworkManager-dispatcher.service' '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service' One short command beats 4 of them. -- Note: My last name is not Krejzi. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page