set hostname from database if available

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2016-01-18 17:09:23 +00:00
parent cfafe4f2d3
commit 5acf36affa
4 changed files with 3 additions and 4 deletions

View File

@ -37,6 +37,7 @@ COPY packages/9pinit/etc /etc/
COPY packages/ntp15m/etc /etc/
COPY packages/binfmt_misc/etc /etc/
COPY packages/dnsfix/etc /etc/
COPY packages/hostname/etc /etc/
RUN \
rc-update add swap boot && \
@ -62,7 +63,7 @@ RUN \
rc-update add localmount && \
rc-update add klogd && \
rc-update add docker default && \
rc-update add 9pinit default && \
rc-update add 9pinit boot && \
rc-update add 9pudc default && \
rc-update add 9pudfuse default && \
rc-update add mdnstool default && \

View File

@ -1,7 +1,7 @@
all: initrd.img
ETCFILES=etc/issue etc/motd etc/network/interfaces
ETCFILES+=etc/hostname- etc/resolv.conf- etc/hosts-
ETCFILES+=etc/resolv.conf- etc/hosts-
ETCFILES+=etc/securetty
initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES)

View File

@ -1 +0,0 @@
docker

View File

@ -46,7 +46,6 @@ mkdir pty
cd /tmp/etc
mv hosts- hosts
mv resolv.conf- resolv.conf
mv hostname- hostname
rm /tmp/bin/mkinitrd.sh