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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
3dcca39a
Commit
3dcca39a
authored
Nov 15, 2022
by
Paul Wolneykien
Committed by
Anton Midyukov
Jan 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: Allow to configure hostname via TARGET_HOSTNAME
parent
ff66f763
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
README
features.in/net/README
+3
-0
config.mk
features.in/net/config.mk
+1
-0
50-net-hostname
features.in/net/rootfs/image-scripts.d/50-net-hostname
+10
-0
No files found.
features.in/net/README
View file @
3dcca39a
Эта фича конфигурирует базовую поддержку сети, включая нужную подсистему
Эта фича конфигурирует базовую поддержку сети, включая нужную подсистему
(etcnet, NetworkManager поверх etcnet или connman).
(etcnet, NetworkManager поверх etcnet или connman).
Используйте TARGET_HOSTNAME для определения имени узла (файлы
/etc/sysconfig/network и /etc/hostname).
features.in/net/config.mk
View file @
3dcca39a
...
@@ -7,6 +7,7 @@ use/net: use/services use/pkgpriorities
...
@@ -7,6 +7,7 @@ use/net: use/services use/pkgpriorities
@$(call add,THE_PACKAGES,iputils)
@$(call add,THE_PACKAGES,iputils)
@$(call add,PINNED_PACKAGES,$$(THE_NET_SUBSYS))
@$(call add,PINNED_PACKAGES,$$(THE_NET_SUBSYS))
@$(call set,THE_NET_SUBSYS,network-config-subsystem)
@$(call set,THE_NET_SUBSYS,network-config-subsystem)
@$(call xport,TARGET_HOSTNAME)
use/net/etcnet: use/net
use/net/etcnet: use/net
@$(call set,THE_NET_SUBSYS,etcnet)
@$(call set,THE_NET_SUBSYS,etcnet)
...
...
features.in/net/rootfs/image-scripts.d/50-net-hostname
0 → 100755
View file @
3dcca39a
#!/bin/sh -efu
#
# Sets up the node's hostname.
.
shell-config
if
[
-n
"
${
GLOBAL_TARGET_HOSTNAME
:-}
"
]
;
then
shell_config_set /etc/sysconfig/network
'TARGET_HOSTNAME'
"
$GLOBAL_TARGET_HOSTNAME
"
echo
"
$GLOBAL_TARGET_HOSTNAME
"
>
/etc/hostname
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