1
0

Use Docker instead of Vagrant for generate images

Fixes #2
This commit is contained in:
2018-10-25 23:38:12 +00:00
parent 37c2e05062
commit a93073e0be
10 changed files with 76 additions and 231 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh -eux
docker build -t gen-ubuntu1804-image .
RUN="docker run --privileged -v $(pwd):/shared -t gen-ubuntu1804-image"
$RUN # generate image
$RUN sh -c 'cp /vmlinuz /shared/ubuntu1804.vmlinuz'
$RUN sh -c 'cp /initrd.img /shared/ubuntu1804.initrd'
$RUN sh -c 'cp $(find /lib/modules -name test_static_key_base.ko) /shared/ubuntu1804.ko'