redo mkinitrd.sh to not use volumes

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2015-12-08 14:48:27 +00:00
parent f3f60f724e
commit 4a5528a0cc
3 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,8 @@ RUN apk update && apk upgrade && apk add e2fsprogs docker chrony
COPY etc /etc/
COPY mkinitrd.sh /bin/
RUN \
setup-timezone -z UTC && \
rc-update add swap boot && \

View File

@ -7,7 +7,7 @@ ETCFILES+=etc/init.d/chronyd
initrd.img: Dockerfile mkinitrd.sh repositories $(ETCFILES)
rm -f initrd.img
docker build -t moby:test .
docker run -i -v $(PWD):/export moby:test /export/mkinitrd.sh
docker run -i moby:test /bin/mkinitrd.sh > $@
clean:
rm -f initrd.img

View File

@ -48,5 +48,7 @@ mv hosts- hosts
mv resolv.conf- resolv.conf
mv hostname- hostname
rm /tmp/bin/mkinitrd.sh
cd /tmp
find . | cpio -H newc -o > /export/initrd.img
find . | cpio -H newc -o