mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 12:38:11 +00:00
remove ability to set hostname as no longer needed. Hard code llmnrd name as 'docker'
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
ea5636df85
commit
f7fa90b181
@ -84,7 +84,7 @@ nameserver 2001:4860:4860::8888
|
|||||||
nameserver 2001:4860:4860::8844
|
nameserver 2001:4860:4860::8844
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
printf 'docker' > /tmp/etc/hostname
|
printf 'moby' > /tmp/etc/hostname
|
||||||
|
|
||||||
rm /tmp/bin/mkinitrd.sh
|
rm /tmp/bin/mkinitrd.sh
|
||||||
|
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
description="Configuring settings from database."
|
description="Configuring settings from database."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
before hostname sysctl
|
before sysctl
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Configuring host settings from database"
|
ebegin "Configuring host settings from database"
|
||||||
|
|
||||||
mobyconfig exists etc/hostname && echo $(mobyconfig get etc/hostname) > /etc/hostname
|
|
||||||
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
|
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
|
||||||
|
|
||||||
eend 0
|
eend 0
|
||||||
|
@ -16,7 +16,8 @@ start()
|
|||||||
|
|
||||||
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/llmnrd.pid
|
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/llmnrd.pid
|
||||||
|
|
||||||
export HOSTNAME=$(hostname -s)
|
# always serve as 'docker'
|
||||||
|
export HOSTNAME=docker
|
||||||
|
|
||||||
start-stop-daemon --start --quiet \
|
start-stop-daemon --start --quiet \
|
||||||
--background \
|
--background \
|
||||||
|
Loading…
Reference in New Issue
Block a user