Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
df67477a
Commit
df67477a
authored
Aug 19, 2021
by
Mikhail Gordeev
Committed by
Anton Midyukov
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: Add networkd/resolved and networkd/resolved-stub subfeatures
Creates systemd-resolved symbolic link to /etc/resolv.conf
parent
621afbee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
config.mk
features.in/net/config.mk
+9
-0
99-systemd-resolved-link
...es.in/net/rootfs/image-scripts.d/99-systemd-resolved-link
+10
-0
No files found.
features.in/net/config.mk
View file @
df67477a
...
...
@@ -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)
features.in/net/rootfs/image-scripts.d/99-systemd-resolved-link
0 → 100755
View file @
df67477a
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment