On 7/20/19 3:37 AM, Hans Malissa via blfs-support wrote:
I've been reading through the installation instructions for wpa_supplicant (http://linuxfromscratch.org/blfs/view/stable-systemd/basicnet/wpa_supplicant.html) and NetworkManager (http://linuxfromscratch.org/blfs/view/stable-systemd/basicnet/networkmanager.html) on 8.4-systemd. There are a few questions I have:
Hi Hans,
a) NetworkManager lists UPower-0.99.9 as a recommended dependency. UPower comes with a systemd unit. Does this mean that UPower should be installed, or that the systemd unit should be started/enabled as well?
Yes, you should install UPower and the systemd unit should be enabled and started. This allows UPower to be seen and communicated with via D-Bus.
b) Similarly, NetworkManager lists BlueZ-5.50 and ModemManager-1.10.0, both of which have their own systemd units. Should the systemd units be started/enabled for NetworkManager?

The same applies here, you're going to want the systemd unit to be started/enabled.


c) The page on wpa_supplicant describes the installation of the systemd units:

# install -v -m644 systemd/*.service /lib/systemd/system/

You're going to need these enabled as well
and the D-Bus configurations files

# install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \
/usr/share/dbus-1/system-services/ &&
install -v -d -m755 /etc/dbus-1/system.d &&
install -v -m644 dbus/dbus-wpa_supplicant.conf \
/etc/dbus-1/system.d/wpa_supplicant.conf

and its activation

# systemctl enable wpa_supplicant

I assume that the systemd units are only needed when using wpa_supplicant without NetworkManager. Are the D-Bus configuration files and the D-Bus service are needed for NetworkManager, is that correct? Does the 'Configuration Information' apply for the use with NetworkManager as well?
The configuration information doesn't apply, but the D-Bus Configuration Files and the service are required. In addition, the systemd unit is needed.
d) The note on the NetworkManager page states: 'If using Network Manager to manage an interface, any previous configuration for that interface should be removed, and the interface brought down prior to starting Network Manager.'. I've configures my network interface using the /etc/systemd/network/10-eth-dhcp.network file during LFS (http://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter07/network.html). Does this mean that I should delete that file, or is there something else that needs to be done? How do I bring down the interface? NetworkManager lists dhcpcd-7.1.1 as a recommended dependency; I assume that I shouldn't start/enable the systemd unit for dhcpcd, correct?

Your best bet is to run the following:

mv -v /etc/systemd/network/10-eth-dhcp.network{,.NOUSE}

That way if anything goes wrong, you'll be able to go back to the old configuration.

You should enable the DHCP unit for systemd because it will install the dhcpcd@ services in /lib/systemd, which NetworkManager will spawn when bringing up an interface. Don't worry about bringing down the interface, at the next reboot (or the next time you run 'systemctl restart systemd-networkd'), it will be managed by NetworkManager.

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to