Commit df67477a authored by Mikhail Gordeev's avatar Mikhail Gordeev Committed by Anton Midyukov

net: Add networkd/resolved and networkd/resolved-stub subfeatures

Creates systemd-resolved symbolic link to /etc/resolv.conf
parent 621afbee
......@@ -43,3 +43,12 @@ use/net/connman: use/net
use/net/networkd: use/net
@$(call set,THE_NET_SUBSYS,systemd-networkd)
@$(call add,DEFAULT_SERVICES_ENABLE,systemd-networkd)
@$(call xport,SYSTEMD_RESOLVED)
use/net/networkd/resolved: use/net/networkd
@$(call add,DEFAULT_SERVICES_ENABLE,systemd-resolved)
@$(call set,SYSTEMD_RESOLVED,yes)
use/net/networkd/resolved-stub: use/net/networkd
@$(call add,DEFAULT_SERVICES_ENABLE,systemd-resolved)
@$(call set,SYSTEMD_RESOLVED,stub)
#!/bin/sh
[ -h /sbin/init ] || exit 0
[ -n "$GLOBAL_SYSTEMD_RESOLVED" ] || exit 0
if [ "$GLOBAL_SYSTEMD_RESOLVED" = stub ]; then
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
else
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment