`systemd-networkd-resolve-hook.socket` was introduced in systemd-v259, so dracut
throws an error with previous systemd versions:
```
dracut[I]: *** Including module: systemd-networkd ***
Failed to enable unit: Unit systemd-networkd-resolve-hook.socket does not exist
```
Follow-up for
84c05fc661fa2ec01cfb341e73569542d46938d7
systemd-networkd-resolve-hook.socket \
systemd-network-generator.service \
systemd-networkd-wait-online.service; do
- $SYSTEMCTL -q --root "$initdir" enable "$i"
+ if [[ -e "$initdir$systemdsystemunitdir"/"$i" ]]; then
+ $SYSTEMCTL -q --root "$initdir" enable "$i"
+ fi
done
# Install the hosts local user configurations if enabled.